xref: /OK3568_Linux_fs/buildroot/board/arcturus/ppc-ucp1020/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunArcturus uCP1020 SoM
2*4882a593Smuzhiyun====================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis tutorial describes how to use the predefined Buildroot
5*4882a593Smuzhiyunconfiguration for the Arcturus uCP1020 SoM platform.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunAdditional information about this module can be found at
8*4882a593Smuzhiyun<www.arcturusnetworks.com/products/ucp1020>
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunBuilding
11*4882a593Smuzhiyun--------
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun  make arcturus_ucp1020_defconfig
14*4882a593Smuzhiyun  make
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunResult of the build
17*4882a593Smuzhiyun-------------------
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunAfter building, you should obtain this tree:
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun    output/images/
22*4882a593Smuzhiyun    +-- rootfs.jffs2
23*4882a593Smuzhiyun    +-- rootfs.tar
24*4882a593Smuzhiyun    +-- u-boot.bin
25*4882a593Smuzhiyun    +-- ucp1020.dtb
26*4882a593Smuzhiyun    +-- uImage
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunFlashing
29*4882a593Smuzhiyun--------
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunYou'll need to program the files created by buildroot into the NOR flash.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun1. Program the new U-Boot binary (optional)
34*4882a593Smuzhiyun    If you don't feel confident upgrading your bootloader then don't do it,
35*4882a593Smuzhiyun    it's unnecessary most of the time.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun    B$ tftp u-boot.bin
38*4882a593Smuzhiyun    B$ protect off 0xeff80000 +$filesize
39*4882a593Smuzhiyun    B$ erase 0xeff80000 +$filesize
40*4882a593Smuzhiyun    B$ cp.b $loadaddr 0xeff80000 $filesize
41*4882a593Smuzhiyun    B$ protect on 0xeff80000 +$filesize
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun2. Program the kernel
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun    B$ tftp uImage
46*4882a593Smuzhiyun    B$ erase 0xec140000 +$filesize
47*4882a593Smuzhiyun    B$ cp.b $loadaddr 0xec140000 $filesize
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun3. Program the DTB
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun    B$ tftp ucp1020.dtb
52*4882a593Smuzhiyun    B$ erase 0xec100000 +$filesize
53*4882a593Smuzhiyun    B$ cp.b $loadaddr 0xec100000 $filesize
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun4. Program the jffs2 root filesystem
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun    B$ tftp rootfs.jffs2
58*4882a593Smuzhiyun    B$ erase 0xec800000 0xee8fffff
59*4882a593Smuzhiyun    B$ cp.b $loadaddr 0xec800000 $filesize
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun5. Booting your new system
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun    B$ setenv norboot 'setenv bootargs root=/dev/mtdblock1 rootfstype=jffs2 console=$consoledev,$baudrate;bootm 0xec140000 - 0xec100000'
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun    If you want to set this boot option as default:
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun    B$ setenv bootcmd 'run norboot'
68*4882a593Smuzhiyun    B$ saveenv
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun    ...or for a single boot:
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun    B$ run norboot
73*4882a593Smuzhiyun
74*4882a593SmuzhiyunGood Luck !
75