(GTA02) updated NOR image build and install procedure

Nigel Cunningham nigel at suspend2.net
Sun May 11 13:01:41 CEST 2008


Hi.

[Sorry Werner that you've received this a couple of times already - I
had the wrong sending identity, so the mailing list was automatically
rejecting the message]

On Fri, 2008-05-09 at 12:32 -0300, Werner Almesberger wrote:
> Here's an updated procedure for building and installing the NOR image
> from scratch. All you need to get started is to have our toolchain
> installed:
> http://wiki.openmoko.org/wiki/Toolchain
> 
> - Werner
> 
> ---------------------------------- cut here -----------------------------------
> 
> #####  Building u-boot  #######################################################
> 
> git clone git://git.openmoko.org/git/u-boot.git
> cd u-boot
> git checkout origin/stable

At this point, I get:

Note: moving to "origin/stable" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b <new_branch_name>
HEAD is now at 4ec6097... nand_skip_bad.patch

Is that okay? I'm not a git guru :)

> make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- gta02v6_config
> make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- u-boot.udfu

I've installed the x86_64 toolchain, and get at this point:

[...]
make[1]: Nothing to be done for `u-boot.lds'.
make[1]: Leaving directory `/home/nigel/Programming/openmoko/u-boot/board/neo1973/gta02'
UNDEF_SYM=`arm-angstrom-linux-gnueabi-objdump -x lib_generic/libgeneric.a board/neo1973/gta02/libgta02.a cpu/arm920t/libarm920t.a cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a post/libpost.a post/drivers/libpostdrivers.a common/libcommon.a libfdt/libfdt.a api/libapi.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|
 uniq`;\
		cd /home/nigel/Programming/openmoko/u-boot && arm-angstrom-linux-gnueabi-ld -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib -Wl,-O1 -Bstatic -T /home/nigel/Programming/openmoko/u-boot/board/neo1973/gta02/u-boot.lds  --defsym raise=hang -Ttext 0x33F80000 $UNDEF_SYM cpu/arm920t/start.o \
			--start-group lib_generic/libgeneric.a board/neo1973/gta02/libgta02.a cpu/arm920t/libarm920t.a cpu/arm920t/s3c24x0/libs3c24x0.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a drivers/mtd/onenand/libonenand.a drivers/net/libnet.a drivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/usb/libusb.a drivers/video/libvideo.a post/libpost.a post/drivers/libpostdrivers.a common/libcommon.a libfdt/libfdt.a api/libapi.a --end-group -L /usr/local/openmoko/arm/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2 -l
 gcc \
			-Map u-boot.map -o u-boot
arm-angstrom-linux-gnueabi-ld: unrecognized option '-Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib'
arm-angstrom-linux-gnueabi-ld: use the --help option for usage information
make: *** [u-boot] Error 1

Haven't tried the rest yet.

Regards,

Nigel





More information about the openmoko-kernel mailing list