From: EXTERNAL B. M. (P. ST-FIR/Eng) <ext...@de...> - 2007-08-07 08:37:22
|
... > Also, if you give it a sh_mv=3Dfoo, do you get the proper list?=20 No.=20 >> When I tried to specify any other string (including the correct = mv_name) to sh_mv=3D booting stopped after=20 >> [ =A0 =A00.000000] console [sercon0] enabled > Beyond that, what boot loader are you using?=20 I don't have a real bootloader on the board. I load zImage at address = 0x8c210000 with a JTAG debugger.=20 > You might also try bumping the load address up higher in case=20 > the boot loader happens to be stepping on something. Afaik no other address will work. > Have you tried this with sh-bios support enabled and disabled in the = kernel?=20 > Are the results the same for both?=20 I don't have a BIOS on the board. Enabling the sh-bios in the kernel = will break the kernel. =20 > If that doesn't reveal any clues, can you build with debugging symbols > and post your kernel image somewhere so I can disassemble it? Not possible at the moment, but i will do that in about 7 hours. > That's a bit unusual. Can you print out what the size of the machvec > section is (ie, &__machvec_end - &__machvec_start)?=20 Yes, and in combination with nm this gives some interesting results: This is without earlyprintk. Note that mv_mpr2 has the same address as = __machvec_start [ 0.000000] Linux version 2.6.23-rc2 (markus@linux-markus) (gcc = version 3.4.6) #38 Tue Aug 7 09:25:06 CEST 2007 [ 0.000000] machvec start: 0x8c2c1a70 machvec end 0x8c2c1b20 size: = 0x2c [ 0.000000] Booting machvec: mpr2 [ 0.000000] Magic Panel Release 2 A.2 markus@linux-markus:~/kernels$ sh3-unknown-linux-gnu-nm vmlinux | grep = mpr2 8c2c18c0 t __initcall_mpr2_devices_setup6 8c2c1b00 T init_mpr2_IRQ 8c2c03d4 t mpr2_devices 8c2b1870 t mpr2_devices_setup 8c2b16d0 t mpr2_setup 8c2c1a70 t mv_mpr2 This is with earlyprintk enabled. Now size and addresses have changed = and mv_mpr2 isn't at the beginning of the machvec anymore. [ 0.000000] Linux version 2.6.23-rc2 (markus@linux-markus) (gcc = version 3.4.6) #36 Tue Aug 7 09:19:31 CEST 2007 [ 0.000000] console [sercon0] enabled [ 0.000000] machvec start: 0x8c2c1bfc machvec end 0x8c2c1cb0 size: = 0x2d [ 0.000000] Booting machvec: ./ [ 0.000000] Node 0: start_pfn =3D 0xc000, low =3D 0xff00 markus@linux-markus:~/kernels$ sh3-unknown-linux-gnu-nm vmlinux | grep = mpr2 8c2c1a4c t __initcall_mpr2_devices_setup6 8c2c1c90 T init_mpr2_IRQ 8c2c0554 t mpr2_devices 8c2b19e0 t mpr2_devices_setup 8c2b1840 t mpr2_setup 8c2c1c00 t mv_mpr2 Regards Markus |