Reply
Thread Tools
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#51
Originally Posted by Netweaver View Post
some info not soo long ago in the other big u-boot thread :

Posted by Rob1n :http://talk.maemo.org/showpost.php?p...&postcount=156

The patches created by Rob1n or Mirakels is not in the last version of the u-boot code as delivered yesterday. I checked the git code for /arch/arm/bootm.c

It might not be needed to allow the copying of the existing ATAGS + the new ones as specified during u-boot, if you want to go for a pure port, as Rob1n used a hybrid Maemo FS + Nitdroid FS. But then extra work needs to be done.

Also the following post in the same thread (by Mirakels) might help to get more insight.

Anyway, it's getting too deep for me, for now, I'll let the big boys play

Thanks already for all the effort
Similar patch is in this new uboot too :-) re-using atags can be done by specifing USE_ATAG in bootmenu config file.
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#52
Originally Posted by iDont View Post
Pali, could you double check whether your dd is provided by /bin/busybox? On my device, both the stock BusyBox' dd as well as busybox-power's dd don't support the oflag parameter. Also, the conv parameter shouldn't be supported by the stock BusyBox' dd (it is by busybox-power's dd though).
Ok, I will recheck it.
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#53
Problem found: I have installed gnu utils and /usr/bin/gnu in PATH. So my script used first dd in path (/usr/bin/gnu/dd), which support my syntax.

/bin/dd (busybox) has real no support for conv and oflag.

Has somebody idea how to rewrite that script to work with default busybox?

Anyway, now I sent final patch series for rx51 u-boot support to mailinglist...
 

The Following 9 Users Say Thank You to pali For This Useful Post:
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#54
Originally Posted by pali View Post
Has somebody idea how to rewrite that script to work with default busybox?
Replace:
Code:
...
uboot_size=$(wc -c "$uboot" | cut -f1 -d' ')
kernel_size=$(wc -c "$kernel" | cut -f1 -d' ')
...
dd if="/dev/zero" of="$output" bs=1 count="$uboot_append" conv=notrunc oflag=append 2>/dev/null
dd if="$kernel" of="$output" conv=notrunc oflag=append 2>/dev/null
...
With:
Code:
...
uboot_size=$(ls -l "$uboot" | tr -s ' ' | cut -f5 -d' ')
kernel_size=$(ls -l "$kernel" | tr -s ' ' | cut -f5 -d' ')
...
dd if="/dev/zero" of="$output" bs=1 count="$uboot_append"  seek="$uboot_size" 2>/dev/null
dd if="$kernel" of="$output" bs=512 seek="$(($uboot_max / 512))" 2>/dev/null
...
 

The Following 6 Users Say Thank You to Fabry For This Useful Post:
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#55
Hi guys I could need some guidance here, probably I am missing something.
I installed u-boot-tools_2011.12-1_armel.deb + u-boot-flasher_2011.12-1_armel.deb and extracted u-boot-images.tar.gz to /
Then updated with u-boot-update-bootmenu.

But on reboot there's no penguin looking at me, it just boots into maemo.
Keyboard open brings only my default multiboot menu.

I'm using bash if this matters.

Edit: Ok, sorted it out. For some reason it took a few boots for u-boot to appear. Holding U while booting finally brought it up. So now I only need a config and a kernel for Memo and I would be happy....

Cheers,

J4ZZ

Last edited by J4ZZ; 2012-01-26 at 23:24.
 
Posts: 78 | Thanked: 24 times | Joined on Mar 2010
#56
@pali,

Hi, I have a spare N900 in my hand now, on which I tried to install u-boot.
Newly flashed the device with stock 1.3 kernel (rooted), trying to install u-boot from your files but it says incompatible package.
Do I need to install-uninstall something?
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#57
write output of dpkg
 

The Following 2 Users Say Thank You to pali For This Useful Post:
Posts: 78 | Thanked: 24 times | Joined on Mar 2010
#58
dpkg worked after several reboots and I ran and installed u-boot-tools, then u-boot-flasher. copied /boot and /etc, and run u-boot-update-bootmenu.
I can see all .item files in place, all images in place, but when i reboot i am given only one choice=default omap kernel.

I am no developer, but not a noob either and I would like to help in testing. Can you please guide me?
I can also report on hw, but how do I check which version I have?
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#59
@hermes040:
You need to start phone with open keyboard. Did you see U-Boot screen?
Please provide directory listing of your /boot and /etc/bootmenu.d
Also write here output of u-boot-update-bootmenu
 
Posts: 78 | Thanked: 24 times | Joined on Mar 2010
#60
@pali,

sorry, everything went under /home/boot and /home/etc.. corrected them to /boot and /etc.
Everything is fine now, I get all options for boot images on startup with keyboard open.
The only problem as mentioned some post before is the short time to select.
I will now boot all of them in sequence and report to you.

I also have a 16GB class 10 memory card, partitioned to 1 FAT and 3 more ext3 partitions on which I want to try installing Nemo, Ubuntu and Nitdroid.
Hope I can achieve that with no big pain.
 
Reply

Tags
bootmenu, u-boot


 
Forum Jump


All times are GMT. The time now is 12:17.