• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Re: 2.6.30-rc5 new release on: May 13, 2009, 03:56:16 PM
You got your bootargs missed up.
Look at the line
Code:
IP-Config: Device `DB88FXX81' not found.

The kernel is trying to bring up interface DB88FXX81, instead of eth0.


That was one issue, i had an extra ':' on the config line. The right one,
bootcmd=run boottftp;setenv bootargs $(console) $(bootargs_nfs) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000

The other issue, was that bootargs was printenv,
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x0@0x100000(uImage),0x1ff00000@0x100000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/tftpboot/rootfs ip=192.168.0.35:192.168.0.20::::DB88FXX81:eth0:none

bootargs did not automatically translate $(serverip) when setting nfsroot, so i hardcoded the value and it boots fine now.

Thanks all for the help. So, now, we have Ubifs enabled?! :-)
2  Hardware and U-Boot firmware / U-Boot stuff / Re: MMC/SD support in u-boot on: May 13, 2009, 03:44:27 PM
After u-boot build, final image for bubt is "u-boot-rd88f6281Sheevaplug_400db_nand.bin" not "u-boot.bin".
Copy u-boot-rd88f6281Sheevaplug_400db_nand.bin as "u-boot.bin" and try to use bubt.

Yes, that is the way :-)
Is there another thread for mmcinit related issues and fixes? Or should keep doing progress on this thread?
Thanks

P.S.- Edit to contribute back
I have attached a diff file that applies to u-boot-1.1.4 sources tarball. It includes, marvell u-boot-3.4.16, sd.tgz, all files and patches discussed here, plus it tweaks Makefile to use arm-linux-gnu- cross compiler.

So, instructions to compile are
1) tar jxvf u-boot-1.1.4.tar.bz2
2) gzip -d u-boot-1.1.4-diff.patch.gz
3) cd u-boot-1.1.4; patch -p1 < ../u-boot-1.1.4-diff.patch
4) make rd88f6281Sheevaplug_config NBOOT=1
5) make clean; make -s
6) cp u-boot-rd88f6281Sheevaplug_400db_nand.bin /tftpboot/u-boot.bin
(WARN: That you need to use u-boot-rd88f6281Sheevaplug_400db_nand.bin)

Thanks, credit and work goes to Marvell, Denk, Debian, openplug community and specially to kwonsk.
3  Linux Stuff / Kernel / Re: 2.6.30-rc5 new release on: May 12, 2009, 05:09:37 PM
Hi,

I was tftp booting rc4 correctly but when i playing with u-boot trying to boot off mmc, now, I get a kernel panic on the tftp kernel boot rc4 (also tried it on rc5)

Code:
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2009-05-13 00:07:17 UTC (1242173237)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address c7d9
mmcblk0: mmc0:c7d9 SD256 243 MiB
 mmcblk0:
IP-Config: Device `DB88FXX81' not found.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0 (driver?)
1f01            4096 mtdblock1 (driver?)
1f02          519168 mtdblock2 (driver?)
b300          249088 mmcblk0 driver: mmcblk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c00309c0>] (unwind_backtrace+0x0/0xe0) from [<c003db20>] (panic+0x50/0x120)
[<c003db20>] (panic+0x50/0x120) from [<c0008ec4>] (mount_block_root+0x1d4/0x214)
[<c0008ec4>] (mount_block_root+0x1d4/0x214) from [<c000916c>] (prepare_namespace+0x16c/0x1c4)
[<c000916c>] (prepare_namespace+0x16c/0x1c4) from [<c0008734>] (kernel_init+0xc0/0xec)
[<c0008734>] (kernel_init+0xc0/0xec) from [<c0040b18>] (do_exit+0x0/0x6ac)

on uBoot:
Code:
Marvell>> printenv bootcmd
bootcmd=run boottftp;setenv bootargs $(console) $(bootargs_nfs) ip=$(ipaddr):$(serverip):$(bootargs_end);bootm 0x2000000

Marvell>> printenv boottftp
boottftp=tftpboot 0x2000000 $(image_name)

Marvell>> printenv image_name
image_name=sheeva-2.6.30-rc5-uImage

Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x0@0x100000(uImage),0x1ff00000@0x100000(rootfs)rw root=/dev/nfs rw nfsroot=$(serverip):/tftpboot/rootfs ip=192.168.0.35:192.168.0.20::::DB88FXX81:eth0:none

Any ideas on how to boot nfs rootfs back? When removing the MMC card kernel also complains.

I wonder why it was working and now it fails.. with same stuff.. :-/
4  Hardware and U-Boot firmware / U-Boot stuff / Re: MMC/SD supprot in u-boot on: May 12, 2009, 03:34:41 PM
Hi,
Did you use the Marvell toolchain? This build seems to be very sensitive to the particular toolchain you use. I tried with the codesourcery one and got all sorts of weird errors.

I am using emdebian.org prebuilt armel toolchain for lenny, i have to tweak the Makefile to set the compiler.

Finally, it works great atm
5  Hardware and U-Boot firmware / U-Boot stuff / Re: MMC/SD supprot in u-boot on: May 12, 2009, 03:31:16 PM
"undefined reference dcache_enable" is expected result.  I've added cache control command in "mv_kw.h" for mmc test.
Just add following function in cpu/arm926ejs/cpu.c (I don't know why this funcion is missing).

void dcache_enable(void)
{
  u_long reg;
  reg = read_p15_c1();
  cp_delay();
  write_p15_c1(reg | C1_DC);
}


Yes, this made it compiles fine Smiley
But when trying to flash new u-boot.bin image with bubt,

Code:

Marvell>> bubt
using default file "u-boot.bin"
Using egiga0 device
TFTP from server 192.168.0.20; our IP address is 192.168.0.35
Filename 'u-boot.bin'.
Load address: 0x2000000
Loading: #################################################################
         ###########################
done
Bytes transferred = 470404 (72d84 hex)
Error! invalid image header checksum

Thanks
6  Hardware and U-Boot firmware / U-Boot stuff / Re: MMC/SD supprot in u-boot on: May 06, 2009, 09:47:28 AM
Hi,

Trying your last steps I get:
Code:
make[1]: Leaving directory `/mnt/sda/SOURCES/srctrack/tmp/SheevaPlug_U-Boot/SheevaPlug_U-Boot/Sources/u-boot-3.4.16/common'
UNDEF_SYM=`arm-linux-gnueabi-objdump -x lib_generic/libgeneric.a board/mv_feroceon/config_kw/libconfig_kw.a cpu/arm926ejs/libarm926ejs.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 rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/usb/libusb.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
                arm-linux-gnueabi-ld -Bstatic -T /home/zumbi/SOURCES/tmp/SheevaPlug_U-Boot/SheevaPlug_U-Boot/Sources/u-boot-3.4.16/board/mv_feroceon/config_kw/u-boot.lds -Ttext 0x00600000  $UNDEF_SYM cpu/arm926ejs/start.o \
                        --start-group lib_generic/libgeneric.a board/mv_feroceon/config_kw/libconfig_kw.a cpu/arm926ejs/libarm926ejs.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 rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/usb/libusb.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/lib/gcc/arm-linux-gnueabi/4.3.3 -lgcc \
                        -Map u-boot.map -o u-boot
common/libcommon.a(cmd_cache.o): In function `do_dcache':
/mnt/sda/SOURCES/srctrack/tmp/SheevaPlug_U-Boot/SheevaPlug_U-Boot/Sources/u-boot-3.4.16/common/cmd_cache.c:71: undefined reference to `dcache_enable'
make: *** [u-boot] Error 1
7  Hardware and U-Boot firmware / U-Boot stuff / Re: MMC/SD supprot in u-boot on: May 03, 2009, 04:30:05 PM
The file is no longer available. Could you uploaded somewhere? I could give hosting for the file if needed.

Code:
This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached.

To download this file, the uploader either needs to transfer this file into his/her Collector's Account, or upload the file again. The file can later be moved to a Collector's Account. The uploader just needs to click the delete link of the file to get further information.
Pages: [1]