Difference between pages "Compiling Angstrom for pico-SAM9G45" and "Building an image from scratch"
(Difference between pages)
Jump to navigation
Jump to search
(Created page with "<h1>Compile using the new meta-angstrom distribution based on meta-openembedded branch (new branch)</h1> git clone git://github.com/Angstrom-distribution/setup-scripts.git -...") |
(Created page with "=microSD Formatting= ==Building an image from scratch== The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.<br> Steps to follo...") |
||
Line 1: | Line 1: | ||
− | + | =microSD Formatting= | |
− | + | ==Building an image from scratch== | |
− | + | The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.<br> | |
− | + | Steps to follow when you're installing a custom OS: | |
− | + | * [http://arm.mini-box.com/index.php?title=Using_dd#Identifying_the_microSD_device_name See this page] for identifying the microSD device name | |
− | + | * Create a '''FAT16''' (important!) partition at the beginning of the disk. You should use a small partition size for this (<= 24Mb). | |
− | + | * Create an ext3 partition for the rest of the space that will hold a linux or android root file system. | |
+ | * Format the FAT16 partition with mkfs.msdos <your device 1st partition> (ie: mkfs.msdos /dev/sdf1) | ||
+ | * Format the ext3 partition with mkfs.ext3 <your device 2nd paritition> (ie: mkfs.ext3 /dev/sdf2) | ||
+ | * On the FAT16 partition copy the bootstrap (you can use the prebuild binary [http://arm.mini-box.com/releases/kernel_bootstrap/latest/BOOT.BIN BOOT.BIN]) that will load the linux kernel ([http://arm.mini-box.com/releases/kernel_bootstrap/latest/linux.bin linux.bin]) | ||
+ | If you intend to compile a custom kernel follow the steps from the [[Kernel Building]] page, and make sure you compile the kernel in the uImage format and you specify the boot kernel parameters on the kernel configure step. | ||
− | + | * On the ext3 partition copy your OS root file system, making sure that the init binary from your OS has the correct patch setup in the kernel boot kernel parameters when you configured the kernel. | |
− | + | The prebuild kernel expects init binary to be located on /. | |
− | + | <br><br> | |
− | + | ==Automatic formatting of microSD card with a script== | |
− | + | * [http://arm.mini-box.com/index.php?title=Using_dd#Identifying_the_microSD_device_name See this page] for identifying the microSD device name<br> | |
− | + | * Download [http://gitorious.org/picopc-tools/picopc-tools/blobs/master/setup-sdcard/setup-sdcard.sh Setup SD card script].<br> | |
− | + | * Run this script with: | |
− | + | <pre style="font-size: medium">setup-sdcard.sh <target_device></pre> | |
− | + | (ie: ./setup-sdcard.sh /dev/sdf).<br> | |
− | + | This script will create the partition layout automatically as described above. | |
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 06:36, 20 October 2020
microSD Formatting
Building an image from scratch
The microSD card must use a special partition layout so it can be used for booting in pico-SAM9G45.
Steps to follow when you're installing a custom OS:
- See this page for identifying the microSD device name
- Create a FAT16 (important!) partition at the beginning of the disk. You should use a small partition size for this (<= 24Mb).
- Create an ext3 partition for the rest of the space that will hold a linux or android root file system.
- Format the FAT16 partition with mkfs.msdos <your device 1st partition> (ie: mkfs.msdos /dev/sdf1)
- Format the ext3 partition with mkfs.ext3 <your device 2nd paritition> (ie: mkfs.ext3 /dev/sdf2)
- On the FAT16 partition copy the bootstrap (you can use the prebuild binary BOOT.BIN) that will load the linux kernel (linux.bin)
If you intend to compile a custom kernel follow the steps from the Kernel Building page, and make sure you compile the kernel in the uImage format and you specify the boot kernel parameters on the kernel configure step.
- On the ext3 partition copy your OS root file system, making sure that the init binary from your OS has the correct patch setup in the kernel boot kernel parameters when you configured the kernel.
The prebuild kernel expects init binary to be located on /.
Automatic formatting of microSD card with a script
- See this page for identifying the microSD device name
- Download Setup SD card script.
- Run this script with:
setup-sdcard.sh <target_device>
(ie: ./setup-sdcard.sh /dev/sdf).
This script will create the partition layout automatically as described above.