a9735b07c536756b31d6fe5280bd368973853b87
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / board / freescale / p2020ds / readme.txt
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.
3
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!
8
9 1. Program the DTB to NOR flash
10
11    => tftp ${loadaddr} p2020ds.dtb
12    => erase 0xeff00000 0xeff7ffff
13    => cp.b ${loadaddr} 0xeff00000 ${filesize}
14
15 2. Program the kernel to NOR flash
16
17    => tftp ${loadaddr} uImage
18    => erase 0xec000000 0xec3fffff
19    => cp.b ${loadaddr} 0xec000000 ${filesize}
20
21 3. Program the root filesystem to NOR flash
22
23    => tftp ${loadaddr} rootfs.jffs2
24    => erase 0xec400000 0xeeffffff
25    => cp.b ${loadaddr} 0xec400000 ${filesize}
26
27 4. Booting your new system
28
29    => setenv jffs2boot 'setenv bootargs root=/dev/mtdblock4 rootfstype=jffs2 rw console=ttyS0,115200;bootm ec000000 - eff00000'
30
31    If you want to set this boot option as default:
32
33    => setenv bootcmd 'run jffs2boot'
34    => saveenv
35
36    ...or for a single boot:
37
38    => run jffs2boot
39
40    You can login with user "root".