xref: /OK3568_Linux_fs/buildroot/board/openblocks/a6/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunOpenblocks A6
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunIntro
4*4882a593Smuzhiyun=====
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis default configuration will allow you to start experimenting with the
7*4882a593Smuzhiyunbuildroot environment for the Openblocks A6. With the current configuration
8*4882a593Smuzhiyunit will bring-up the board, and allow access through the serial console.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunHow to build it
11*4882a593Smuzhiyun===============
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunConfigure Buildroot:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun    $ make openblocks_a6_defconfig
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunCompile everything:
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun    $ make
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunUpdating board over TFTP
22*4882a593Smuzhiyun========================
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunCopy the content of output/images to the root of your TFTP server.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunConnect serial and ethernet, power up board and stop it in U-Boot:
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunDRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 14 tRCD=5
29*4882a593SmuzhiyunDRAM CS[0] base 0x00000000   size 512MB
30*4882a593SmuzhiyunDRAM Total size 512MB  16bit width
31*4882a593SmuzhiyunAddresses 8M - 0M are saved for the U-Boot usage.
32*4882a593SmuzhiyunMem malloc Initialization (8M - 7M): Done
33*4882a593SmuzhiyunNAND:64 MB
34*4882a593SmuzhiyunPOST:  mac verify Eth0 PASSED
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunCPU : Marvell Feroceon (Rev 1)
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunStreaming disabled
39*4882a593SmuzhiyunWrite allocate disabled
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunUSB 0: host mode
43*4882a593SmuzhiyunNet:   egiga0
44*4882a593SmuzhiyunHit any key to stop autoboot:  0
45*4882a593Smuzhiyunopenblocks>>
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunLoad kernel from tftp:
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunsetenv serverip <tftp-server-ip>
51*4882a593Smuzhiyunsetenv bootfile uImage.kirkwood-openblocks_a6
52*4882a593Smuzhiyunbootp && tftp
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun
55*4882a593SmuzhiyunWrite it to nand:
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunnand erase 0x590000 0x1c5c000
58*4882a593Smuzhiyunnand write.e $loadaddr 0x590000 0x1c5c000
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun
61*4882a593SmuzhiyunLoad rootfs from tftp:
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunsetenv serverip <tftp-server-ip>
64*4882a593Smuzhiyunsetenv bootfile rootfs.jffs2
65*4882a593Smuzhiyunbootp && tftp
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunWrite it to nand:
69*4882a593Smuzhiyun
70*4882a593Smuzhiyunnand erase 0x2214000 0x1dc4000
71*4882a593Smuzhiyunnand write.jffs2 $loadaddr 0x2214000 0x1dc4000
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun
74*4882a593SmuzhiyunConfigure kernel to use rootfs:
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunsetenv root /dev/mtdblock5 rootfstype=jffs2
77*4882a593Smuzhiyunsaveenv
78*4882a593Smuzhiyunboot
79