Fwd: Getting IMEI from uboot

Andy Green andy at openmoko.com
Fri Sep 26 11:53:33 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Hi,
|
| apparently there are only two ways of getting IMEI from uboot on a
FreeRunner:
|
|
| - Sending the proper  AT command  to the Calypso modem
| - Reading it from nand0,4 factory partition
|
| A.Actually I've discovered that GSM passthrough doesn't work anymore
|
| http://docs.openmoko.org/trac/ticket/1595
|
| Can you confirm this ? Anybody knows what is the possible cause ? (If
| yes, I'll investigate) The gsm_power_on function seems to act
| correctly on GPIO.

Sorry, never used it, no idea.  U-Boot support for anything is pretty
much deprecated since we plan to do stuff once in Linux only going on.

| B.I don't know really how to read a file from the factory parrtition
| while working on u-boot. Any suggestion is welcome.
|
| Thank you for your attention,

You can read the factory partition while in Linux, it's way easier.

# mount /dev/mtdblock5 /mnt
# ls -l /mnt
- -rw-r--r--    1 root     root           19 Mar 21 01:49 bt
- -rw-r--r--    1 root     root           17 Mar 21 01:49 imei
drwx------    2 root     root        12288 Mar 21 01:49 lost+found
- -rw-r--r--    1 root     root            9 Mar 21 01:49 sn
- -rw-r--r--    1 root     root           19 Mar 21 01:49 usb
- -rw-r--r--    1 root     root           19 Mar 21 01:49 wlan

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjcsRcACgkQOjLpvpq7dMpQpQCfbIUJ45VQngHgeH9Rtqai0djm
DjsAn25iv6Ptq7oHXlrtyEmbOUu2ZI1N
=DCaQ
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list