diff options
author | Eric Bénard <eric@eukrea.com> | 2012-04-01 15:15:06 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-01 17:42:32 +0000 |
commit | 550b2da6645437c234c01aad451eeec9b71e7576 (patch) | |
tree | 943fe059ec96bc14b50cfc1f7be787caae3d0546 | |
parent | 9fc87a4b81a98ef18cae3349813bf8369863027c (diff) | |
download | meta-fsl-arm-550b2da6645437c234c01aad451eeec9b71e7576.tar.gz |
barebox: adapt to new sdcard class
8353415 Major refactor in SDCard generation now puts the uImage
in a fat partition even for barebox so adapt the barebox
environment to this new behaviour (which makes kernel updates
easier then in the previous bbsdimage)
Signed-off-by: Eric Bénard <eric@eukrea.com>
3 files changed, 46 insertions, 4 deletions
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch new file mode 100644 index 0000000..6a3c000 --- /dev/null +++ b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From b2c59fb4fd00e4a1ef153a09bf2717738ee437a2 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Sat, 31 Mar 2012 15:13:02 +0200 | ||
4 | Subject: [PATCH] imx53qsb: default config for OE's sdcard image | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
10 | --- | ||
11 | .../boards/freescale-mx53-loco/env/bin/init_board | 4 ++++ | ||
12 | defaultenv/bin/boot | 2 ++ | ||
13 | 2 files changed, 6 insertions(+), 0 deletions(-) | ||
14 | create mode 100644 arch/arm/boards/freescale-mx53-loco/env/bin/init_board | ||
15 | |||
16 | diff --git a/arch/arm/boards/freescale-mx53-loco/env/bin/init_board b/arch/arm/boards/freescale-mx53-loco/env/bin/init_board | ||
17 | new file mode 100644 | ||
18 | index 0000000..3a5ae42 | ||
19 | --- /dev/null | ||
20 | +++ b/arch/arm/boards/freescale-mx53-loco/env/bin/init_board | ||
21 | @@ -0,0 +1,4 @@ | ||
22 | +#!/bin/sh | ||
23 | + | ||
24 | +mkdir /mnt | ||
25 | +mount /dev/disk0.1 fat /mnt | ||
26 | diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot | ||
27 | index 1120757..e46705d 100644 | ||
28 | --- a/defaultenv/bin/boot | ||
29 | +++ b/defaultenv/bin/boot | ||
30 | @@ -84,6 +84,8 @@ elif [ x$kernel_loc = xnand ]; then | ||
31 | kdev="/dev/nand0.kernel.bb" | ||
32 | elif [ x$kernel_loc = xdisk ]; then | ||
33 | kdev="/dev/$kernel_part" | ||
34 | +elif [ x$kernel_loc = xmnt ]; then | ||
35 | + kdev="/mnt/$kernel_name" | ||
36 | else | ||
37 | echo "error: set kernel_loc to one of 'tftp', 'nfs', 'nand', 'nor' or 'disk'" | ||
38 | exit 1 | ||
39 | -- | ||
40 | 1.7.7.6 | ||
41 | |||
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config index 3398c95..b60bf3c 100644 --- a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config +++ b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config | |||
@@ -15,13 +15,13 @@ ip=dhcp | |||
15 | #eth0.serverip=a.b.c.d | 15 | #eth0.serverip=a.b.c.d |
16 | 16 | ||
17 | # can be either 'nfs', 'tftp', 'nor' or 'nand' | 17 | # can be either 'nfs', 'tftp', 'nor' or 'nand' |
18 | kernel_loc=disk | 18 | kernel_loc=mnt |
19 | # can be either 'net', 'nor', 'nand' or 'initrd' | 19 | # can be either 'net', 'nor', 'nand' or 'initrd' |
20 | rootfs_loc=disk | 20 | rootfs_loc=disk |
21 | 21 | ||
22 | # boot parameters for SDCard boot | 22 | # boot parameters for SDCard boot |
23 | kernel_part=disk0.kernel | 23 | kernel_name=uImage |
24 | rootfs_part_linux_dev=mmcblk0p1 | 24 | rootfs_part_linux_dev=mmcblk0p3 |
25 | rootfs_type=ext3 | 25 | rootfs_type=ext3 |
26 | 26 | ||
27 | # can be either 'jffs2' or 'ubifs' | 27 | # can be either 'jffs2' or 'ubifs' |
diff --git a/recipes-bsp/barebox/barebox_2012.02.0.bb b/recipes-bsp/barebox/barebox_2012.02.0.bb index 3969c79..3fad26f 100644 --- a/recipes-bsp/barebox/barebox_2012.02.0.bb +++ b/recipes-bsp/barebox/barebox_2012.02.0.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require barebox.inc | 1 | require barebox.inc |
2 | 2 | ||
3 | PR = "r0" | 3 | PR = "r1" |
4 | 4 | ||
5 | SRC_URI = "http://barebox.org/download/${PN}-${PV}.tar.bz2 \ | 5 | SRC_URI = "http://barebox.org/download/${PN}-${PV}.tar.bz2 \ |
6 | file://defconfig \ | 6 | file://defconfig \ |
@@ -18,6 +18,7 @@ SRC_URI_append_imx53qsb = " \ | |||
18 | file://0005-mx53-loco-add-i2c-support.patch \ | 18 | file://0005-mx53-loco-add-i2c-support.patch \ |
19 | file://0006-mx53-loco-add-board-revision-support.patch \ | 19 | file://0006-mx53-loco-add-board-revision-support.patch \ |
20 | file://0007-mx53-loco-update-defconfig.patch \ | 20 | file://0007-mx53-loco-update-defconfig.patch \ |
21 | file://0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | do_configure_prepend_imx53qsb() { | 24 | do_configure_prepend_imx53qsb() { |