Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
fat_installer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
fat_installer [2012/12/31 19:08] marvin24fat_installer [2013/01/04 16:33] (current) marvin24
Line 1: Line 1:
-====== Fat Installer ======+====== Migration to u-boot ====== 
 + 
 + 
 +===== Fat Installer =====
  
 During discussions on IRC about the future boot process using u-boot, we came to the conclusion that we need to repartition the device first. By default, the AC100 using a proprietary partitioning scheme which cannot (or shouldn't?) be supported by mainline kernels. So before introducing a new bootloader, we need to install a new partition table (preferable gpt format) without (also preferable) loosing any data. Older kernels (pre 3.1) will not be able to detect this anymore, so all Android versions with old kernel will fail here. They would fail anyway, because of u-boot, so this is no loss. During discussions on IRC about the future boot process using u-boot, we came to the conclusion that we need to repartition the device first. By default, the AC100 using a proprietary partitioning scheme which cannot (or shouldn't?) be supported by mainline kernels. So before introducing a new bootloader, we need to install a new partition table (preferable gpt format) without (also preferable) loosing any data. Older kernels (pre 3.1) will not be able to detect this anymore, so all Android versions with old kernel will fail here. They would fail anyway, because of u-boot, so this is no loss.
  
-====== Storage Layout ======+===== Storage Layout =====
  
 A few words to the EMMC (internal storage) layout. There are two different EMMCs build into the various AC100 models. One from SanDisk and one from Toshiba. I mention this because they use different size of secure partitions. These partitions cannot be access by uboot at the time of writing this (may be possible in the future though). On the other hand, the kernel can do. Because we plan to put our bootloader into these partitions, we need to boot a kernel with an initramfs filesystem first to be able to flash the bootloader. Some program needs to detect the EMMC type and flash the bootloader to the "right" place. This "flashing" process is also decribed on [[swarren_brain_dump|this page]]. A few words to the EMMC (internal storage) layout. There are two different EMMCs build into the various AC100 models. One from SanDisk and one from Toshiba. I mention this because they use different size of secure partitions. These partitions cannot be access by uboot at the time of writing this (may be possible in the future though). On the other hand, the kernel can do. Because we plan to put our bootloader into these partitions, we need to boot a kernel with an initramfs filesystem first to be able to flash the bootloader. Some program needs to detect the EMMC type and flash the bootloader to the "right" place. This "flashing" process is also decribed on [[swarren_brain_dump|this page]].
Line 9: Line 12:
 The partition table is then put right a the first sector of the first "normal" partition, so the kernel can find it easily. The partition table is then put right a the first sector of the first "normal" partition, so the kernel can find it easily.
  
-====== What we need? ======+===== What we need? =====
  
 So we have a plan - what else is needed? So we have a plan - what else is needed?
Line 18: Line 21:
   - detect the place where to put the bootloader and flash it   - detect the place where to put the bootloader and flash it
   - flash the new partiton table   - flash the new partiton table
-  - flash the new kernel +  - flash (or copy to /boot) the new kernel
- +
  
 +Additionally, the ramdisk could contain a minimal system with network (wifi/usb ethernet/usb gadget) support to present a bootloader menu (e.g. [[http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/petitboot.html|petitboot]]), to either boot some kernels from some attached storage or via tftp, scp, or similar - all via kexec method.
  
fat_installer.txt · Last modified: 2013/01/04 16:33 by marvin24