1 You'll need to program the files created by buildroot into the flash.
2 The fast way is to tftp transfer the files via one of the network interfaces.
4 Alternatively you can transfer the files via serial console with an Ymodem
5 file transfer from your terminal program by using a "loady" command
6 from the u-boot prompt instead of the "tftp ..." commands stated below.
7 Beware that serial console file transfers are quite slow!
9 1. Program the kernel to NAND flash
11 => tftp $loadaddr uImage
12 => nand erase 0x100000 0x1e0000
13 => nand write $loadaddr 0x100000 0x1e0000
15 2. Program the DTB to NAND flash
17 => tftp $loadaddr mpc8315erdb.dtb
18 => nand erase 0x2e0000 0x20000
19 => nand write $loadaddr 0x2e0000 0x20000
21 3. Program the root filesystem to NAND flash
23 => tftp $loadaddr rootfs.jffs2
24 => nand erase 0x400000 0x1c00000
25 => nand write $loadaddr 0x400000 $filesize
27 4. Booting your new system
29 => setenv nandboot 'setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 console=$consoledev,$baudrate;nand read $fdtaddr 0x2e0000 0x20000;nand read $loadaddr 0x100000 0x1e0000;bootm $loadaddr - $fdtaddr'
31 If you want to set this boot option as default:
33 => setenv bootcmd 'run nandboot'
36 ...or for a single boot:
40 You can login with user "root".