diff options
Diffstat (limited to 'meta-yocto-bsp/README.hardware')
-rw-r--r-- | meta-yocto-bsp/README.hardware | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/meta-yocto-bsp/README.hardware b/meta-yocto-bsp/README.hardware index d8d2a0cac6..5996be764c 100644 --- a/meta-yocto-bsp/README.hardware +++ b/meta-yocto-bsp/README.hardware | |||
@@ -28,7 +28,6 @@ Hardware Reference Boards | |||
28 | The following boards are supported by the meta-yocto-bsp layer: | 28 | The following boards are supported by the meta-yocto-bsp layer: |
29 | 29 | ||
30 | * Texas Instruments Beaglebone (beaglebone-yocto) | 30 | * Texas Instruments Beaglebone (beaglebone-yocto) |
31 | * Freescale MPC8315E-RDB (mpc8315e-rdb) | ||
32 | * Ubiquiti Networks EdgeRouter Lite (edgerouter) | 31 | * Ubiquiti Networks EdgeRouter Lite (edgerouter) |
33 | * General IA platforms (genericx86 and genericx86-64) | 32 | * General IA platforms (genericx86 and genericx86-64) |
34 | 33 | ||
@@ -155,147 +154,6 @@ From a Linux system with access to the image files perform the following steps: | |||
155 | 154 | ||
156 | 3. Insert the SD card into the Beaglebone and boot the board. | 155 | 3. Insert the SD card into the Beaglebone and boot the board. |
157 | 156 | ||
158 | Freescale MPC8315E-RDB (mpc8315e-rdb) | ||
159 | ===================================== | ||
160 | |||
161 | The MPC8315 PowerPC reference platform (MPC8315E-RDB) is aimed at hardware and | ||
162 | software development of network attached storage (NAS) and digital media server | ||
163 | applications. The MPC8315E-RDB features the PowerQUICC II Pro processor, which | ||
164 | includes a built-in security accelerator. | ||
165 | |||
166 | (Note: you may find it easier to order MPC8315E-RDBA; this appears to be the | ||
167 | same board in an enclosure with accessories. In any case it is fully | ||
168 | compatible with the instructions given here.) | ||
169 | |||
170 | Setup instructions | ||
171 | ------------------ | ||
172 | |||
173 | You will need the following: | ||
174 | * NFS root setup on your workstation | ||
175 | * TFTP server installed on your workstation | ||
176 | * Straight-thru 9-conductor serial cable (DB9, M/F) connected from your | ||
177 | PC to UART1 | ||
178 | * Ethernet connected to the first ethernet port on the board | ||
179 | |||
180 | --- Preparation --- | ||
181 | |||
182 | Note: if you have altered your board's ethernet MAC address(es) from the | ||
183 | defaults, or you need to do so because you want multiple boards on the same | ||
184 | network, then you will need to change the values in the dts file (patch | ||
185 | linux/arch/powerpc/boot/dts/mpc8315erdb.dts within the kernel source). If | ||
186 | you have left them at the factory default then you shouldn't need to do | ||
187 | anything here. | ||
188 | |||
189 | Note: To boot from USB disk you need u-boot that supports 'ext2load usb' | ||
190 | command. You need to setup TFTP server, load u-boot from there and | ||
191 | flash it to NOR flash. | ||
192 | |||
193 | Beware! Flashing bootloader is potentially dangerous operation that can | ||
194 | brick your device if done incorrectly. Please, make sure you understand | ||
195 | what below commands mean before executing them. | ||
196 | |||
197 | Load the new u-boot.bin from TFTP server to memory address 200000 | ||
198 | => tftp 200000 u-boot.bin | ||
199 | |||
200 | Disable flash protection | ||
201 | => protect off all | ||
202 | |||
203 | Erase the old u-boot from fe000000 to fe06ffff in NOR flash. | ||
204 | The size is 0x70000 (458752 bytes) | ||
205 | => erase fe000000 fe06ffff | ||
206 | |||
207 | Copy the new u-boot from address 200000 to fe000000 | ||
208 | the size is 0x70000. It has to be greater or equal to u-boot.bin size | ||
209 | => cp.b 200000 fe000000 70000 | ||
210 | |||
211 | Enable flash protection again | ||
212 | => protect on all | ||
213 | |||
214 | Reset the board | ||
215 | => reset | ||
216 | |||
217 | --- Booting from USB disk --- | ||
218 | |||
219 | 1. Flash partitioned image to the USB disk | ||
220 | |||
221 | # dd if=core-image-minimal-mpc8315e-rdb.wic of=/dev/sdb | ||
222 | |||
223 | 2. Plug USB disk into the MPC8315 board | ||
224 | |||
225 | 3. Connect the board's first serial port to your workstation and then start up | ||
226 | your favourite serial terminal so that you will be able to interact with | ||
227 | the serial console. If you don't have a favourite, picocom is suggested: | ||
228 | |||
229 | $ picocom /dev/ttyUSB0 -b 115200 | ||
230 | |||
231 | 4. Power up or reset the board and press a key on the terminal when prompted | ||
232 | to get to the U-Boot command line | ||
233 | |||
234 | 5. Optional. Load the u-boot.bin from the USB disk: | ||
235 | |||
236 | => usb start | ||
237 | => ext2load usb 0:1 200000 u-boot.bin | ||
238 | |||
239 | and flash it to NOR flash as described above. | ||
240 | |||
241 | 6. Load the kernel and dtb from the first partition of the USB disk: | ||
242 | |||
243 | => usb start | ||
244 | => ext2load usb 0:1 1000000 uImage | ||
245 | => ext2load usb 0:1 2000000 dtb | ||
246 | |||
247 | 7. Set bootargs and boot up the device | ||
248 | |||
249 | => setenv bootargs root=/dev/sdb2 rw rootwait console=ttyS0,115200 | ||
250 | => bootm 1000000 - 2000000 | ||
251 | |||
252 | |||
253 | --- Booting from NFS root --- | ||
254 | |||
255 | Load the kernel and dtb (device tree blob), and boot the system as follows: | ||
256 | |||
257 | 1. Get the kernel (uImage-mpc8315e-rdb.bin) and dtb (uImage-mpc8315e-rdb.dtb) | ||
258 | files from the tmp/deploy directory, and make them available on your TFTP | ||
259 | server. | ||
260 | |||
261 | 2. Connect the board's first serial port to your workstation and then start up | ||
262 | your favourite serial terminal so that you will be able to interact with | ||
263 | the serial console. If you don't have a favourite, picocom is suggested: | ||
264 | |||
265 | $ picocom /dev/ttyUSB0 -b 115200 | ||
266 | |||
267 | 3. Power up or reset the board and press a key on the terminal when prompted | ||
268 | to get to the U-Boot command line | ||
269 | |||
270 | 4. Set up the environment in U-Boot: | ||
271 | |||
272 | => setenv ipaddr <board ip> | ||
273 | => setenv serverip <tftp server ip> | ||
274 | => setenv bootargs root=/dev/nfs rw nfsroot=<nfsroot ip>:<rootfs path> ip=<board ip>:<server ip>:<gateway ip>:255.255.255.0:mpc8315e:eth0:off console=ttyS0,115200 | ||
275 | |||
276 | 5. Download the kernel and dtb, and boot: | ||
277 | |||
278 | => tftp 1000000 uImage-mpc8315e-rdb.bin | ||
279 | => tftp 2000000 uImage-mpc8315e-rdb.dtb | ||
280 | => bootm 1000000 - 2000000 | ||
281 | |||
282 | --- Booting from JFFS2 root --- | ||
283 | |||
284 | 1. First boot the board with NFS root. | ||
285 | |||
286 | 2. Erase the MTD partition which will be used as root: | ||
287 | |||
288 | $ flash_eraseall /dev/mtd3 | ||
289 | |||
290 | 3. Copy the JFFS2 image to the MTD partition: | ||
291 | |||
292 | $ flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3 | ||
293 | |||
294 | 4. Then reboot the board and set up the environment in U-Boot: | ||
295 | |||
296 | => setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200 | ||
297 | |||
298 | |||
299 | Ubiquiti Networks EdgeRouter Lite (edgerouter) | 157 | Ubiquiti Networks EdgeRouter Lite (edgerouter) |
300 | ============================================== | 158 | ============================================== |
301 | 159 | ||