Hello, I want to use kernel 2.6.38.8 which is compatible with xenomai 2.6.0. I added mini6410 drivers to kernel source tree from kernel 2.6.38. Linux 2.6.38 boots properly, but somehow 2.6.38.8 doesn't boot. Boot is pending as follows: --------- Board: MINI6410 DRAM: 256 MB Flash: 0 kB NAND: 256 MB In: serial Out: serial Err: serial MAC: 08:90:90:90:90:90 Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x80000, size 0x500000 ........................................Boot with zImage Starting kernel ... Uncompressing Linux... done, booting the kernel. I request help about fixing this problem. I am working on this issue for 48 hours but it is very irritating. .config files are almost same except buzzer and led drivers, but I dont understand why cant I port kernel version to MINI6410. Thanks for helps in advance. Best Regards Egemen KALELİ
KERNEL BOOT PROBLEM ON MINI6410
Check what machine ID (MACH_ID) your bootloader forwards to the kernel and what MACH_ID your kernel expects for the Mini6410.
thanks for replying; I have looked into linux-2.6.38.8/arch/arm/tools/mach-types : mini6410 MACH_MINI6410 MINI6410 2520 mach-id is 2520 I think. Also U-boot prompts: MINI6410 # bdinfo arch_number = 0x000009D8 env_t = 0x00000000 ... arch_number = 0x000009D8=2520 You see they are same. What do you suggest? I configured the kernel with low level debug support. I hope I can find what is going wrong. BEST REGARDS.
It was just an idea, because my first Mini6410 came with a u-boot which reporst SMDK6410 as its Mach-ID. And my kernel behaves in the same way than yours in this case. Good luck.
I am about to give up, at least I want to learn a last thing from you: In FriendlyARM DVD, there is a precompiled u-boot_xxx.bin that I use as bootloader. I compiled kernel 2.6.38 source with my toolchain(gcc 4.5.2) and kernel boots and works well. I compiled u-boot source in DVD with my tool chain. But produced u-boot.bin hangs even with kernel is 2.6.38: U-Boot 1.1.6 (Apr 6 2011 - 14:17:30) for FriendlyARM MINI6410 CPU: S3C6410@532MHz Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode) X Board: MINI6410 DRAM: 256 MB Flash: 0 kB NAND: 256 MB And doesn't go further from here. It is different problem than I asked before because precompiled u-boot works with kernel 2.6.38. I also checked MACH_TYPE and there is no confliction. I had wanted o port mini6410 to Xenomai patched real-time Linux, but weird problems discourages me.Anyway this last question is not related with this aim but I had met this and tried precompiled uboot versions.
You hit the problem of most of all the hardware vendors: they provide a binary that works, and the source code to be conform with the GPL license. But you do not really know how to get something similar to the binary from the source they provide. Do you know my board support package for the Mini6410? Maybe with the u-boot from this BSP you can get your 2.6.38 kernel work. At least my BSP provides a 2.6.39 kernel. Refer http://www.friendlyarm.net/forum/topic/3015
Finally, I solved the problem temporarily in a weird way. I configured kernel version number as 2.6.38 and it boots now! Vendor Uboot.bin is configured to support specific version numbers. I looked into your bsp package tarball, but I couldn't find your u-boot.bin or source codes. How can I get it? Does it only support kernel 2.6.39? Best Regards.
Take a look into the documentation and you will know how to get everything to make you Mini6410 work.