|
|
Amlogic openlinux > wiki > index.php > Arm > Buildroot > buildroot-2015-01-20
buildroot-2015-01-20Table of contentsNo headersGetting the source code: $ wget -c http://openlinux.amlogic.com:8000/do...015-01-20-4a59 90f135.tar.gz
Compilation: $ tar zxvf arm-buildroot-2015-01-20-4a5990f135.tar.gz $ cd buildroot $ make meson8_k200b_release_defconfig # For k200B boards $ make meson6_3.10_g18_release_defconfig # For g18 boards $ make meson6_3.10_g35_release_defconfig # For g35 boards $ make meson8b_m201_release_defconfig # For m201 boards $ make meson8b_m200_release_defconfig # For m200 boards $ make meson8m2_n200_release_defconfig # For n200 boards $ make meson8_k200b_x_release_defconfig # For k200B boards with X server $ make meson6_3.10_g18_x_release_defconfig # For g18 boards with X server $ make meson8b_m201_x_release_defconfig # For m201 boards with X server $ make meson8b_m200_x_release_defconfig # For m200 boards with X server $ make meson8m2_n200_x_release_defconfig # For n200 boards with X server $ make Note: Do not use make -jN here as Buildroot does not support top-level parallel make. This does not mean that Buildroot does not support parallel compilation, but just that it will handle this inside the Buildroot compilation system.
Upgrade the image: 1) Installing Linux on SD Cards The following steps show how to install the resulting system on your SD card. 1. Create an SD card with one partition in ext2 format. 2. Copy u-boot.bin, boot.img, rootfs.tar.gz to this partition $ sudo cp output/images/u-boot.bin /media/sdcard $ sudo cp output/images/boot.img /media/sdcard $ sudo cp output/images/rootfs.tar.gz /media/sdcard $ sync 3. Extract rootfs.tar.gz on SD card $ cd /media/sdcard $ sudo tar zxvf rootfs.tar.gz $ sync 4. Insert SD card into your platform and reboot it into uboot. Replace original uboot with the new one under uboot prompt: # mmcinfo # ext2load mmc 0 ${loadaddr} u-boot.bin # store rom_write ${loadaddr} 0 60000 # reset 5. Enter uboot again, and execute “run bootsdcard” under the prompt: # defenv # saveenv # run bootsdcard
2) Installing Linux on Nand Flash Warning! All previous changes will be lost. 1. Create an SD card with one partition in vfat format 2. copy boot.img and root file system to SD card $ cp output/images/u-boot.bin /media/mySD $ cp output/images/boot.img /media/mySD $ cp output/images/rootfs.tar.gz /media/mySD Insert SD card into your platform and reboot into uboot. Replace original uboot with the new one under uboot prompt: # mmcinfo # fatload mmc 0 ${loadaddr} u-boot.bin # store rom_write ${loadaddr} 0 60000 # reset 3. With new uboot burned on your platform, enter uboot prompt again and execute “run bootupdate” # defenv # saveenv # run bootupdate 4. System will automatically write kernel to boot partition and extract rootfs.tar.gz to system partition. 5. Reboot platform. 6. System will boot up with kernel and root filesystem on NAND. |