diff options
-rw-r--r-- | meta-poky/conf/local.conf.sample | 1 | ||||
-rw-r--r-- | meta-yocto-bsp/README.hardware | 142 | ||||
-rw-r--r-- | meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf | 36 | ||||
-rw-r--r-- | meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend | 2 | ||||
-rw-r--r-- | meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.19.bbappend | 4 | ||||
-rw-r--r-- | meta-yocto-bsp/recipes-kernel/linux/linux-yocto_5.2.bbappend | 4 | ||||
-rw-r--r-- | meta-yocto-bsp/wic/mpc8315e-rdb.wks | 4 |
7 files changed, 0 insertions, 193 deletions
diff --git a/meta-poky/conf/local.conf.sample b/meta-poky/conf/local.conf.sample index 2e0bb41e64..b555f1d21e 100644 --- a/meta-poky/conf/local.conf.sample +++ b/meta-poky/conf/local.conf.sample | |||
@@ -31,7 +31,6 @@ | |||
31 | #MACHINE ?= "beaglebone-yocto" | 31 | #MACHINE ?= "beaglebone-yocto" |
32 | #MACHINE ?= "genericx86" | 32 | #MACHINE ?= "genericx86" |
33 | #MACHINE ?= "genericx86-64" | 33 | #MACHINE ?= "genericx86-64" |
34 | #MACHINE ?= "mpc8315e-rdb" | ||
35 | #MACHINE ?= "edgerouter" | 34 | #MACHINE ?= "edgerouter" |
36 | # | 35 | # |
37 | # This sets the default machine to be qemux86-64 if no other machine is selected: | 36 | # This sets the default machine to be qemux86-64 if no other machine is selected: |
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 | ||
diff --git a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf deleted file mode 100644 index 5382796284..0000000000 --- a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: Freescale MPC8315E-RDB | ||
3 | #@DESCRIPTION: Machine configuration for Freescale MPC8315E-RDB | ||
4 | |||
5 | TARGET_FPU = "" | ||
6 | |||
7 | require conf/machine/include/tune-ppce300c3.inc | ||
8 | |||
9 | KERNEL_IMAGETYPE = "uImage" | ||
10 | |||
11 | EXTRA_IMAGEDEPENDS += "u-boot" | ||
12 | UBOOT_MACHINE = "MPC8315ERDB_config" | ||
13 | |||
14 | SERIAL_CONSOLES = "115200;ttyS0" | ||
15 | |||
16 | MACHINE_FEATURES = "keyboard pci ext2 ext3 serial" | ||
17 | |||
18 | PREFERRED_VERSION_linux-yocto ?= "5.2%" | ||
19 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" | ||
20 | |||
21 | PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" | ||
22 | XSERVER ?= "xserver-xorg \ | ||
23 | xf86-video-fbdev" | ||
24 | |||
25 | UBOOT_ENTRYPOINT = "0x00000000" | ||
26 | |||
27 | KERNEL_DEVICETREE = "mpc8315erdb.dtb" | ||
28 | |||
29 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | ||
30 | |||
31 | IMAGE_FSTYPES ?= "jffs2 tar.bz2" | ||
32 | JFFS2_ERASEBLOCK = "0x4000" | ||
33 | |||
34 | IMAGE_FSTYPES += "wic wic.bmap" | ||
35 | WKS_FILE ?= 'mpc8315e-rdb.wks' | ||
36 | IMAGE_BOOT_FILES ?= "u-boot.bin uImage mpc8315erdb.dtb;dtb" | ||
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend index f044dafb4d..6e5a129dd4 100644 --- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto-dev.bbappend | |||
@@ -2,7 +2,6 @@ KBRANCH_genericx86 = "standard/base" | |||
2 | KBRANCH_genericx86-64 = "standard/base" | 2 | KBRANCH_genericx86-64 = "standard/base" |
3 | KBRANCH_edgerouter = "standard/edgerouter" | 3 | KBRANCH_edgerouter = "standard/edgerouter" |
4 | KBRANCH_beaglebone-yocto = "standard/beaglebone" | 4 | KBRANCH_beaglebone-yocto = "standard/beaglebone" |
5 | KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb" | ||
6 | 5 | ||
7 | KMACHINE_genericx86 ?= "common-pc" | 6 | KMACHINE_genericx86 ?= "common-pc" |
8 | KMACHINE_genericx86-64 ?= "common-pc-64" | 7 | KMACHINE_genericx86-64 ?= "common-pc-64" |
@@ -12,4 +11,3 @@ COMPATIBLE_MACHINE_genericx86 = "genericx86" | |||
12 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" | 11 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" |
13 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" | 12 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" |
14 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" | 13 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" |
15 | COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb" | ||
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.19.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.19.bbappend index ec269d905c..7b4bd2c4ee 100644 --- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.19.bbappend +++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_4.19.bbappend | |||
@@ -2,7 +2,6 @@ KBRANCH_genericx86 = "v4.19/standard/base" | |||
2 | KBRANCH_genericx86-64 = "v4.19/standard/base" | 2 | KBRANCH_genericx86-64 = "v4.19/standard/base" |
3 | KBRANCH_edgerouter = "v4.19/standard/edgerouter" | 3 | KBRANCH_edgerouter = "v4.19/standard/edgerouter" |
4 | KBRANCH_beaglebone-yocto = "v4.19/standard/beaglebone" | 4 | KBRANCH_beaglebone-yocto = "v4.19/standard/beaglebone" |
5 | KBRANCH_mpc8315e-rdb = "v4.19/standard/fsl-mpc8315e-rdb" | ||
6 | 5 | ||
7 | KMACHINE_genericx86 ?= "common-pc" | 6 | KMACHINE_genericx86 ?= "common-pc" |
8 | KMACHINE_genericx86-64 ?= "common-pc-64" | 7 | KMACHINE_genericx86-64 ?= "common-pc-64" |
@@ -12,16 +11,13 @@ SRCREV_machine_genericx86 ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" | |||
12 | SRCREV_machine_genericx86-64 ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" | 11 | SRCREV_machine_genericx86-64 ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" |
13 | SRCREV_machine_edgerouter ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" | 12 | SRCREV_machine_edgerouter ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" |
14 | SRCREV_machine_beaglebone-yocto ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" | 13 | SRCREV_machine_beaglebone-yocto ?= "5664dc14399edcaad210bbeb6343d84561fb3ea8" |
15 | SRCREV_machine_mpc8315e-rdb ?= "d419f4ca6ba4b097b8ad710a93b89510f5b2998c" | ||
16 | 14 | ||
17 | COMPATIBLE_MACHINE_genericx86 = "genericx86" | 15 | COMPATIBLE_MACHINE_genericx86 = "genericx86" |
18 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" | 16 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" |
19 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" | 17 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" |
20 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" | 18 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" |
21 | COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb" | ||
22 | 19 | ||
23 | LINUX_VERSION_genericx86 = "4.19.34" | 20 | LINUX_VERSION_genericx86 = "4.19.34" |
24 | LINUX_VERSION_genericx86-64 = "4.19.34" | 21 | LINUX_VERSION_genericx86-64 = "4.19.34" |
25 | LINUX_VERSION_edgerouter = "4.19.34" | 22 | LINUX_VERSION_edgerouter = "4.19.34" |
26 | LINUX_VERSION_beaglebone-yocto = "4.19.34" | 23 | LINUX_VERSION_beaglebone-yocto = "4.19.34" |
27 | LINUX_VERSION_mpc8315e-rdb = "4.19.34" | ||
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_5.2.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_5.2.bbappend index f15bccbaf2..9a965321df 100644 --- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_5.2.bbappend +++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_5.2.bbappend | |||
@@ -2,7 +2,6 @@ KBRANCH_genericx86 = "v5.2/standard/base" | |||
2 | KBRANCH_genericx86-64 = "v5.2/standard/base" | 2 | KBRANCH_genericx86-64 = "v5.2/standard/base" |
3 | KBRANCH_edgerouter = "v5.2/standard/edgerouter" | 3 | KBRANCH_edgerouter = "v5.2/standard/edgerouter" |
4 | KBRANCH_beaglebone-yocto = "v5.2/standard/beaglebone" | 4 | KBRANCH_beaglebone-yocto = "v5.2/standard/beaglebone" |
5 | KBRANCH_mpc8315e-rdb = "v5.2/standard/fsl-mpc8315e-rdb" | ||
6 | 5 | ||
7 | KMACHINE_genericx86 ?= "common-pc" | 6 | KMACHINE_genericx86 ?= "common-pc" |
8 | KMACHINE_genericx86-64 ?= "common-pc-64" | 7 | KMACHINE_genericx86-64 ?= "common-pc-64" |
@@ -12,16 +11,13 @@ SRCREV_machine_genericx86 ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" | |||
12 | SRCREV_machine_genericx86-64 ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" | 11 | SRCREV_machine_genericx86-64 ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" |
13 | SRCREV_machine_edgerouter ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" | 12 | SRCREV_machine_edgerouter ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" |
14 | SRCREV_machine_beaglebone-yocto ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" | 13 | SRCREV_machine_beaglebone-yocto ?= "25b14cdf9659c68ab32d66616dfdbbe2ece3fd94" |
15 | SRCREV_machine_mpc8315e-rdb ?= "77f031b182885c177b3a96098ae61271911a7954" | ||
16 | 14 | ||
17 | COMPATIBLE_MACHINE_genericx86 = "genericx86" | 15 | COMPATIBLE_MACHINE_genericx86 = "genericx86" |
18 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" | 16 | COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64" |
19 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" | 17 | COMPATIBLE_MACHINE_edgerouter = "edgerouter" |
20 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" | 18 | COMPATIBLE_MACHINE_beaglebone-yocto = "beaglebone-yocto" |
21 | COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb" | ||
22 | 19 | ||
23 | LINUX_VERSION_genericx86 = "5.2.17" | 20 | LINUX_VERSION_genericx86 = "5.2.17" |
24 | LINUX_VERSION_genericx86-64 = "5.2.17" | 21 | LINUX_VERSION_genericx86-64 = "5.2.17" |
25 | LINUX_VERSION_edgerouter = "5.2.17" | 22 | LINUX_VERSION_edgerouter = "5.2.17" |
26 | LINUX_VERSION_beaglebone-yocto = "5.2.17" | 23 | LINUX_VERSION_beaglebone-yocto = "5.2.17" |
27 | LINUX_VERSION_mpc8315e-rdb = "5.2.17" | ||
diff --git a/meta-yocto-bsp/wic/mpc8315e-rdb.wks b/meta-yocto-bsp/wic/mpc8315e-rdb.wks deleted file mode 100644 index d0cb607ffc..0000000000 --- a/meta-yocto-bsp/wic/mpc8315e-rdb.wks +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | # short-description: Create SD card image for MPC8315E-RDB | ||
2 | # long-description: Create a partitioned SD card image for Freescale MPC8315E-RDB reference hardware. | ||
3 | part /boot --source bootimg-partition --ondisk sdb --fstype=ext3 --label boot | ||
4 | part / --source rootfs --ondisk sdb --fstype=ext3 --label root | ||