APC – Surprisingly Pain-free Progress..
My goal is to have a ‘standard’ flavour of Linux (in my case – Fedora) running on the APC, and one of the major pre-requisites was to have the system boot from the micro-SD card, instead of the internal ‘flash memory’.. Looking at all the U-Boot parameters, I had expected this to be a real pain, but in fact when examining the output from the initial boot process, it appeared the the APC was already trying to boot from the micro-SD card first, and then going on to boot from internal flash when this failed..
<boot> Initial SD/MMC Card Fail! No MMC card found ** Unable to use mmc 0:1 for fatload ** ## Checking Image at 00000000 ... Bad Magic Number Initial SD/MMC Card Fail! No MMC card found ** Unable to use mmc 0:1 for fatload ** ** Unable to use mmc 0:1 for fatload ** ## Checking Image at 01000000 ... Bad Magic Number No MMC card found Load Image Form NAND Flash USE_HW_ECC ECC12bit Read NAND Flash OK ## Checking Image at 01000000 ... Image Name: Linux-2.6.32.9-default Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2969192 Bytes = 2.8 MB etc.............
So… I formatted a micro-SD card with one partition of 500MB FAT32 and the second (the rest) as EXT2 (as the Android system didn’t appear to support EXT3 etc..)
Then I copied the appropriate files from the acp-firmware-v1.0 directory (after unzipping it..) to the FAT32 boot partition, and some of the relevant Linux-related xxx.tgz files from acp-firmware-v1.0/packages/wmt to the EXT2 partition, and expanded them: I didn’t copy all the application-specific files across, as I simply wanted to see if it would work, at this stage
I then put the micro-SD card into the slot in the APC, and booted, and amazingly – it worked!:
# boot Initial SD/MMC Card OK! SD/MMC clock is 44Mhz register mmc device part_offset : 800, cur_part : 1 part_offset : 800, cur_part : 1 reading scriptcmd 142 bytes read ## Checking Image at 00000000 ... Image Name: Image Type: ARM Linux Script (gzip compressed) Data Size: 78 Bytes = 0.1 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Executing script at 00000000 Saving Environment to Flash... Un-Protected 1 sectors Un-Protected 1 sectors Erasing Flash... ok. Erased 1 sectors Writing to Flash... done Protected 1 sectors Protected 1 sectors Initial SD/MMC Card OK! SD/MMC clock is 44Mhz register mmc device part_offset : 800, cur_part : 1 part_offset : 800, cur_part : 1 reading uzImage.bin 2969256 bytes read part_offset : 800, cur_part : 1 reading initrd.gz 3231913 bytes read ## Checking Image at 01000000 ... Image Name: Linux-2.6.32.9-default Image Type: ARM Linux Kernel Image (uncompressed) ............etc.........etc . . Please press Enter to activate this console.
BUT……Now I have to work out why – despite changing the boot parameters in U-Boot, the rootfs is not being correctly set…
Comments
APC – Surprisingly Pain-free Progress.. — No Comments