Reply
Thread Tools
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#1
Hi! Last U-Boot still reading atags from previous bootloader NOLO. Because rereading all atags from previous boot is not good solution (for u-boot develepers) I'd like to know how many different atags we have hardcoded in our N900 X-Loader/NoLo code.

Marcel Mol written tool dumpatag which parse atags (also omap atags) to human readable form. His tool is on http://www.mesa.nl/~marcel/

Please run this tool on regular Maemo system WITHOUT INSTALLED U-BOOT
Code:
$ sudo ./dumpatag /proc/atags
and write here output of this tool, HW revision of N900 and country/region of N900.

I need as many as possible atags dumps to see differences between them. Thanks!
 

The Following 7 Users Say Thank You to pali For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#2
Can I help somehow with U-Boot installed? (uboot-pr13)
 

The Following User Says Thank You to int_ua For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#3
Originally Posted by int_ua View Post
Can I help somehow with U-Boot installed? (uboot-pr13)
you can use flasher-3.5 to boot directly zImage kernel (then u-boot will not be started)
 

The Following 6 Users Say Thank You to pali For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#4
Originally Posted by pali View Post
you can use flasher-3.5 to boot directly zImage kernel (then u-boot will not be started)
What if I don't have a zImage? Where should I get one? Actually, I have one, but AFAIU it's from h-e-n dependencies and there are some people without any.
Will
$ flasher-3.5 -k zImage* -f -R
work? Can I use CSSU flasher ( /usr/bin/flasher ) on the device itself?
 

The Following User Says Thank You to int_ua For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#5
I mean that you can use flasher-3.5 for booting zImage. flasher-3.5 has option -l (instead -f) for loading zImage instead flashing. So you can download fiasco image, unpack it and boot (without flashing) stock kernel:
$ sudo flasher-3.5 -F <fiaco_image> -u # this will unpack fiasco image
$ sudo flasher-3.5 -k zImage -l -b # this will send kernel zImage to N900 RAM and boot it

Of course you can flash stock kernel to N900, remove u-boot, but flasher-3.5 has support for booting other kernels without need to flash it.
 

The Following 6 Users Say Thank You to pali For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#6
But since the tool opens any file it's not necessary for anyone to compile and run it, you can just collect
# cat /proc/atags > /home/user/MyDocs/atags
results, right? Is it really necessary to dump them with this tool?
 

The Following 2 Users Say Thank You to int_ua For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#7
Originally Posted by int_ua View Post
But since the tool opens any file it's not necessary for anyone to compile and run it, you can just collect
# cat /proc/atags > /home/user/MyDocs/atags
results, right? Is it really necessary to dump them with this tool?
that tool will read atags from file and convert it to readable form. So you can convert is also on your desktop. But I really do not want to see that atags binary file
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Community Council | Posts: 680 | Thanked: 1,227 times | Joined on Sep 2010 @ Mbabane
#8
Pali, how about you compile this for those of us who have no compilers close by? I'm sure many of us are willing to help you here
 

The Following 3 Users Say Thank You to sicelo For This Useful Post:
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#9
Originally Posted by pali View Post
that tool will read atags from file and convert it to readable form. So you can convert is also on your desktop. But I really do not want to see that atags binary file
Ok, I will convert them for you
I think it would be easier for anyone just to use something like
Code:
sudo cat /proc/atags | gzip -9 > /home/user/MyDocs/atags_$(cat /proc/cpuinfo | grep Revision | grep -o "[0-9]\+")_$(osso-product-info | grep REGION | sed 's/.*=//' | grep -o "[a-zA-Z]\+").gz
without additional actions. Can we get the device region automatically? Any other additions to the name?

Last edited by int_ua; 2012-05-28 at 20:09.
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#10
Originally Posted by qhubekela View Post
Pali, how about you compile this for those of us who have no compilers close by? I'm sure many of us are willing to help you here
Use this binary: http://atrey.karlin.mff.cuni.cz/~pali/dumpatags

Originally Posted by int_ua View Post
Ok, I will convert them for you
I think it would be easier for anyone just to use something like
Code:
$ sudo cat /proc/atags | gzip -9 > /home/user/MyDocs/atags_$(cat /proc/cpuinfo | grep Revision | grep -o "[0-9]\{4\}").gz
without additional actions. Can we get the device region automatically? Any other additions to the name?
osso-product-info
 

The Following 5 Users Say Thank You to pali For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 00:24.