Jump to content


Photo

Images, Sources, Rootfs!


  • Please log in to reply
47 replies to this topic

#16 notaz

notaz

    Mega GP Mania

  • GP Guru
  • 1736 posts
  • Location:Lithuania

Posted 14 July 2010 - 03:38 PM

Start by removing all '0x' from the script, u-boot only takes hex anyway.
Be sure you have u-boot from HF3, older one can't load kernel from ext2 (but it should complain differently in that case though).

#17 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 14 July 2010 - 10:25 PM

0x removed with the same result. I'm quite sure about HF3 rootfs tar.

#18 Vitel

Vitel

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 360 posts
  • Gender:Male

Posted 14 July 2010 - 10:36 PM

I can not load the neuvoo stage 3 using the default Pandora kernel.
Uboot starts loading of the kernel image, then just black screen. No logs or error messages.
I suspect that the problem is caused by bootchart, because the gentoo rootfs does not contain the daemon. Specifying 'root=/linuxrc' or 'root=/sbin/init' doesn't help.
So i need a very base kernel to start with.
The pandora rootfs works fine BTW.

#19 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 14 July 2010 - 10:44 PM

I can not load the neuvoo stage 3 using the default Pandora kernel.
Uboot starts loading of the kernel image, then just black screen. No logs or error messages.
I suspect that the problem is caused by bootchart, because the gentoo rootfs does not contain the daemon. Specifying 'root=/linuxrc' or 'root=/sbin/init' doesn't help.
So i need a very base kernel to start with.
The pandora rootfs works fine BTW.

Drop the console= part in bootargs and you should have atleast some output regardless of the rootfs, no?

#20 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 15 July 2010 - 08:12 AM

I guess that I found error between keyboard and chair. I'm quite sure, that I'm using last version pandora-rootfs.tar.bz2, but it isn't true. I just download it again and it has different size from the one I used. So I do next steps:
  • remove card 2 (with data, pnds, pandora-rootfs.tar.bz2, etc) - just for to be safe
  • open terminal
  • unmount card 1 and mkfs - I gues that it is much more fast then deleting all that files
    sudo umount /media/myvolumesudo mkfs -L myvolume /dev/mmcblk0p1
  • exit terminal
  • remove and after a while reinsert card 1 (empty one) then insert card 2 (with data)
    cd /media/myvolume/sudo tar xvf /media/datacard/pandora-rootfs.tar.bz2sudo cp /media/datacard/boot.txt /media/myvolume/
But still no success. I get the same message:
Loading file "boot.txt" from mmc1 device 0:1 (xxa1)
186 bytes read
## Executing plain script at 82000000
" from mmc device 0:1 (xxa1).6.27.46-omap1
** File not found /boot/uImage-2.6.27.46-omap1
bootm - boot application imagem from memory

Usage:
bootm [addr [arg ...]]
    - boot application image stored in memory
        passing arguments 'arg ...'; when booting a Linux kernel.
        'arg' can be the address of an initrd image

Sub-commands to do partof the bootm sequence.  The sub-commands must be
issued in the order below (it's ok to not issue all sub-commands):
        start [addr [arg ...]]
        loados  - load OS image
        cmdline - OS specific command line processing/setup
        bdt     - OS specific bd_t processing
        prep    - OS specific prep before relocating or go
        go      - start OS
script finished.
An here is my boot.txt (doesn't work neither with not without "0x" prefixes):
setenv bootargs debug root=/dev/mmcblk0p1 rw rootdelay=2 console=ttyS0,115200n8 vram=6272K omapfb.vram=0:3000K
ext2load mmc 0 0x80300000 /boot/uImage-2.6.27.46-omap1
bootm 0x80300000


#21 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 15 July 2010 - 08:15 AM

...The pandora rootfs works fine BTW.

Can You explain me (step by step) how You prepare SD card and extract rootfs to it? Just for comparison. My steps are closely described above. Thank You very much. :-)

#22 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 15 July 2010 - 08:24 AM

An here is my boot.txt (doesn't work neither with not without "0x" prefixes):

Try this version:
setenv bootargs debug root=/dev/mmcblk0p1 rw rootdelay=2 console=ttyS0,115200n8 vram=6272K omapfb.vram=0:3000K
ext2load mmc1 0 80300000 /boot/uImage-2.6.27.46-omap1
bootm 80300000

Sorry i didnt have the time to actually check, but atleast u-boots default environment parameters use ext2load mmc1 to load autoboot.txt, etc, so IMHO worth a shot. Also it seems that you can prepend hex values with 0x, but i dont think it is needed, so whatever...

EDIT: Have you installed HF3 to the NAND? - it (or some HF on the way, but atleast it) has an update to u-boot that allows ext2load to work (at all).

Edited by urjaman, 15 July 2010 - 09:14 AM.


#23 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 15 July 2010 - 09:39 AM

urjaman: Trying... The same result :-( And yes I have HF3 installed (I do this as first step with my new Pandora) - how to check?

#24 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 15 July 2010 - 09:44 AM

how to check?

If boot menu has "USB serial" option in it then it has the fix too.

#25 notaz

notaz

    Mega GP Mania

  • GP Guru
  • 1736 posts
  • Location:Lithuania

Posted 15 July 2010 - 10:26 AM

Try redoing the partition table too.

#26 tsh

tsh

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 481 posts
  • Location:Cambridge

Posted 15 July 2010 - 10:58 AM

[quote name='urjaman' date='12 July 2010 - 02:09 AM' timestamp='1278896941' post='890636']
Mounting your NAND is rather simple, as root:
[code=auto:0]ubiattach /dev/ubi_ctrl -m 4
mount -t ubifs ubi0:rootfs /path/to/mount/point[code]
[/quote]

So if I want to make this permanent, I understand that /etc/fstab should accept the mount information - how about the first part?
(I want it for the wiki...)
http://pandorawiki.o...ootable_SD_card

#27 Vitel

Vitel

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 360 posts
  • Gender:Male

Posted 15 July 2010 - 11:14 AM

...The pandora rootfs works fine BTW.

Can You explain me (step by step) how You prepare SD card and extract rootfs to it? Just for comparison. My steps are closely described above. Thank You very much. :-)

Login as root (su) and do the following:

fdisk
and create sdb1:

/dev/sdb1 1 5572 15754810+ 83 Linux

mkfs.ext2 /dev/sdb1
mount /dev/sdb1 /mnt/sd
tar xvpf pandora-rootfs.tar.bz2 -C /mnt/sd
cp ~/boot.txt /mnt/sd


#28 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 15 July 2010 - 11:39 AM

Try redoing the partition table too.

No success. I don't set partition as active (boot flag) at first, then activate it, but still the same result. It is 8 GB SunDisk. I try use older 1 GB SunDisk card an say result. Just moving files and preparing card.
EDIT Vitel: This is what I do :-( I do this on my Pandora, as I have only Win7 on my PC (and just working on it). If switching cads gets nothing, I can try boot Linux from USBflash and redo it from bigger computer. But I guess that this has nothing with rough power :-)

Edited by peca, 15 July 2010 - 11:44 AM.


#29 peca

peca

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 674 posts
  • Gender:Male
  • Location:Jičín city; CZ

Posted 15 July 2010 - 01:25 PM

Second (1 GB) card tested with the same result :-(
I try reinstall HF3, but I really have it installed already.

#30 urjaman

urjaman

    "I Know. We're going for a ride."

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 680 posts
  • Gender:Male
  • Location:Finland

Posted 15 July 2010 - 04:02 PM

Try this boot.txt:
setenv bootargs debug root=/dev/mmcblk0p1 rw rootdelay=2 console=ttyS0,115200n8 vram=6272K omapfb.vram=0:3000K
ext2load mmc1 0:1 80300000 /boot/uImage-2.6.27.46-omap1
bootm 80300000

I had a hacker moment with u-boot over USB serial and the previous notation doesnt work (atleast with ext2ls, I didnt want to load anything).