Skip to contentSkip to conversation

Reworked stb225 machine configuration file; build uImage for stb225.

PATCH In review Ihar Hrachyshka 2 participants 2 messages Jan 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Reworked stb225 machine configuration file; build uImage for stb225.

Reworked stb225 machine configuration file; build uImage for stb225.

---
 conf/machine/include/tune-mips32.inc            |    1 +
 conf/machine/stb225.conf                        |   16 +++++++++++-----
 packages/linux/linux-2.6.28/stb225/uImage.patch |   23 +++++++++++++++++++++++
 packages/linux/linux_2.6.28.bb                  |    3 ++-
 4 files changed, 37 insertions(+), 6 deletions(-)
 create mode 100644 conf/machine/include/tune-mips32.inc
 create mode 100644 packages/linux/linux-2.6.28/stb225/uImage.patch
conf/machine/include/tune-mips32.inc new file +1 -0
new file mode 100644
index 0000000..93da66b
@@ -0,0 +1 @@
+TARGET_CC_ARCH = "-march=mips32"
conf/machine/stb225.conf +11 -5
index 97370e1..c57adb0 100644
@@ -1,8 +1,14 @@
 # PNX8335 STB225 board
+
 TARGET_ARCH = "mipsel"
-TARGET_CC_ARCH="-march=mips32"
+
 MACHINE_FEATURES = "kernel26"
-IMAGE_FSTYPES="tar.gz"
-PREFERRED_PROVIDER_virtual/kernel="linux"
-KERNEL_IMAGETYPE="vmlinux"
-KERNEL_OUTPUT="${KERNEL_IMAGETYPE}"
+
+IMAGE_FSTYPES += "tar.gz"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+KERNEL_IMAGETYPE = "uImage"
+
+SERIAL_CONSOLE ?= "115200 ttySA0"
+
+require conf/machine/include/tune-mips32.inc
packages/linux/linux-2.6.28/stb225/uImage.patch new file +23 -0
new file mode 100644
index 0000000..f43a221
@@ -0,0 +1,23 @@
+diff -urN linux-2.6.28.orig/arch/mips/Makefile linux-2.6.28/arch/mips/Makefile
+--- linux-2.6.28.orig/arch/mips/Makefile	2009-01-28 16:12:23.000000000 +0200
++++ linux-2.6.28/arch/mips/Makefile	2009-01-28 16:13:54.000000000 +0200
+@@ -682,6 +682,19 @@
+ 
+ all:	$(all-y)
+ 
++# Support for U-Boot image creation (from U-Boot README)
++uImage: vmlinux
++	$(OBJCOPY) -O binary -R .note -R .comment -S vmlinux vmlinux.bin
++	rm -f vmlinux.bin.gz
++	gzip -9 vmlinux.bin
++	LA=`$(OBJDUMP) -p vmlinux | sed -n 's/LOAD.*vaddr \([^ ]*\).*/\1/p'`; \
++	EN=`$(OBJDUMP) -f vmlinux | sed -n 's/.*start address \([^ ]*\).*/\1/p'`; \
++	echo $$LA; \
++	echo $$EN; \
++	mkimage -A mips -O linux -T kernel -C gzip \
++		-a $$LA -e $$EN -n "Linux Kernel Image" \
++		-d vmlinux.bin.gz uImage
++
+ vmlinux.bin: $(vmlinux-32)
+ 	+@$(call makeboot,$@)
+ 
packages/linux/linux_2.6.28.bb +2 -1
index b042a45..ea88f71 100644
@@ -16,6 +16,7 @@ SRC_URI_append_at91sam9263ek = " \
 	   file://linux-2.6.28-exp.patch.bz2;patch=1 "
 
 SRC_URI_append_stb225 = " \
+           file://uImage.patch;patch=1 \
            file://ebase-fix.patch;patch=1 \
            file://enable-uart.patch;patch=1 \
-	   file://ip3902.patch;patch=1 "
+           file://ip3902.patch;patch=1"
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 3 lines · On Friday 30 of January 2009 14:05:53 Ihar Hrachyshka wrote:

Reworked stb225 machine configuration file; build uImage for stb225.

Pushed

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz