[U-Boot] Booting from ext2/ext3

Wolfgang Denk wd at denx.de
Wed Mar 31 20:19:19 CEST 2010


Dear Matthias,

In message <569685F045B85741820D0265E0D2999D019CFE55 at tddhh01.hh.thales-naval.de> you wrote:
> 
> > > I miss some compile-switch, or do I have to explicitly include 
> > > ext2fs.h somewhere? How can I enable the ext2/ext3 functionality?
> > 
> > This depends on CONFIG_CMD_EXT2
> 
> Thanks, I added this along with CONFIG_DOS_PARTITION to my board
> configuration file - which so far is a copy of the MPC8568MDS.h
> 
> During the final linking I get the following errors:
> 
> common/libcommon.a(cmd_ext2.o): In function `do_ext2load':
> u-boot-2009.11.1/common/cmd_ext2.c:193: undefined reference to
> `get_partition_info'
...
> What's the issue here?

Hm... this is U-Boot release v2009.11.1, correct?


In your log you can see that the relevant source file, disk/part.c,
gets compiled:

...
219 make -C disk/
220 make[1]: Entering directory `u-boot-2009.11.1/disk'
221 ppc_85xx-gcc  -g  -Os   -mrelocatable -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xfff80000 -Iu-boot-2009.11.1/include -fno-builtin -ffreestanding -nostdinc -isystem /data/opt/eldk/usr/bin/../lib/gcc/powerpc-linux/4.2.2/include -pipe  -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float -mno-string -mspe=yes -mno-spe -Wall -Wstrict-prototypes -fno-stack-protector   -o part.o part.c -c
...

Try running "nm" on the object file; you should see something like this:

	-> ppc_85xx-nm disk/part.o
	00000000 d block_drvr
	000000dc T dev_print
	0000031c T get_dev
	000002a0 T get_partition_info
		 U get_partition_info_dos
	000002dc T init_part
	00000004 T print_part
		 U print_part_dos
		 U printf
		 U puts
		 U scsi_get_dev
		 U strlen
		 U strncmp
		 U test_part_dos

In my test "get_partition_info" gets defined as "T"ext symbol as
needed. What do you get?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It all seemed, he thought, to be rather a lot of  trouble  to  go  to
just sharpen a razor blade.  - Terry Pratchett, _The Light Fantastic_


More information about the U-Boot mailing list