Help with replacing u-boot and kernel on a released HW...
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi List,
I am not able to attach the files. But they haven't been changed from the original versions so hopefully, I still can be helped!
BR; Naresh
---------- Forwarded message ----------
From: <[email protected]>
Date: Wed, Oct 13, 2010 at 11:40 AM
Subject: Help with replacing u-boot and kernel on a released HW...
To: nareshtechs at gmail.com
Message rejected. No base64 encoded MIME text parts allowed.
---------- Forwarded message ----------
From:?Naresh Mehta <[email protected]>
To:?u-boot at lists.denx.de
Date:?Wed, 13 Oct 2010 11:40:43 +0200
Subject:?Help with replacing u-boot and kernel on a released HW... Hi List,
I have a monta-vista linux based smartphone (Garmin Asus G60). It runs u-boot and kernel 2.6.21. Since it is a released HW and from the u-boot code, I can see that there are no ways to stop the existing u-boot to boot the default kernel installed. There is a possibility to do a region update from the memory card on boot-up. Looking at the code, there is also a possibility to do a recover region i.e. according to the comment it says, download Garmin region from USB. Both the above methods basically run the same command "tffs_load 3 0x80007FC0;bootm 0x80007FC0". The tffs_load is attached in the email.
I have tried to put a bootable .bin file with a modified u-boot and kernel but it does not seem to get loaded. I have tried loading the kernel at 0x80007FC0, 0x80000000 and 0x0. I am out of ideas on how I could get the modified u-boot and kernel on the device. Any pointers would be greatly appreciated.
Just to be clear on how I create the bootable .bin:
- Compile u-boot for montana board (used for this device)
- Compile the kernel with montana_dev_defconfig and some kernel debug options enabled
- Generate a bootable image from vmlinux with different load address configurations as described above
- cat u-boot.bin and the bootable image to form a .bin file
- Place the file on the sdcard and re-boot.
I am now out of ideas. BTW, the HW consists of OMAP2430 and associated components with an Ericsson U360 modem. I am attaching the montana.h file for further reference which will give some overview of the G60 HW. My final goal is to load Android on this device but for that I need new u-boot and modified kernel to get loaded first.
Cheers,
--
BR; Naresh
visit me at:
http://www.naresh.se/
Signature · 4 lines
BR; Naresh visit me at: http://www.naresh.se/
Hi Naresh,
Quoted 2 lines
I am not able to attach the files. But they haven't been changed from the original versions so hopefully, I still can be helped!
Can't you use a different mailer? Attaching files without using base64 isn't all _that_ hard.
[...]
Quoted 12 lines
Subject:?Help with replacing u-boot and kernel on a released HW... Hi List,
I have a monta-vista linux based smartphone (Garmin Asus G60). It runs u-boot and kernel 2.6.21. Since it is a released HW and from the u-boot code, I can see that there are no ways to stop the existing u-boot to boot the default kernel installed. There is a possibility to do a region update from the memory card on boot-up. Looking at the code, there is also a possibility to do a recover region i.e. according to the comment it says, download Garmin region from USB. Both the above methods basically run the same command "
tffs_load3 0x80007FC0;bootm0x80007FC0". Thetffs_loadis attached in the email.
To even start to help you, I'd need to understand better how the "regular" boot process works and what you try to achieve. From the informatino you provide, I cannot infer this.
Quoted 8 lines
I have tried to put a bootable .bin file with a modified u-boot and kernel but it does not seem to get loaded. I have tried loading the kernel at
0x80007FC0,0x80000000and0x0. I am out of ideas on how I could get the modified u-boot and kernel on the device. Any pointers would be greatly appreciated.Just to be clear on how I create the bootable .bin:
- Compile u-boot for montana board (used for this device)
In mainline I cannot find a "montana" board. What sources do you use?
Quoted 2 lines
- Compile the kernel with
montana_dev_defconfigand some kernel debug options enabled
Also in the Linux kernel I cannot find such a configuration.
Quoted 10 lines
- Generate a bootable image from vmlinux with different load address configurations as described above
- cat u-boot.bin and the bootable image to form a .bin file
- Place the file on the sdcard and re-boot.I am now out of ideas. BTW, the HW consists of OMAP2430 and associated components with an Ericsson U360 modem. I am attaching the
montana.hfile for further reference which will give some overview of the G60 HW. My final goal is to load Android on this device but for that I need new u-boot and modified kernel to get loaded first.
Whoever came up with the "montana.h" file may be in a better position to help you. Do you know who that was?
Cheers
Detlev
Signature · 7 lines
C hasn't changed much since the 1970s. And let's face it it's ugly.
Can't we do better? C++? (Sorry, never mind.)
-- Rob Pike
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.deA message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Detlev/All,
I am not able to attach the u-boot source because of the size limit. I though have the URL in the email below. It would be very helpful if you can get the code directly from the URL and help me with the questions.
BR; Naresh
Quoted 47 lines · Naresh Mehta
Hi Detlev,
Thanks for the reply. Garmin-Asus had released a LBS phone known as G60 back in 2009. It runs MontaVista flavor of Linux with kenel 2.6.21 and a proprietary/closed UI. The device is based on OMAP 2430 and most of the components are not changed from the 2430 SDP (at least thats what I get skimming through the sources).
The source is available at [1]
Source folder structure is a bit complex since the source is divided into top level license folders and then a tar.bz2 of the open source SW used. For example: U-boot source is located at /GPL/u-boot-1.1.4/. There are 2 files in the folder u-boot-1.1.4.diff.tar.bz2 and u-boot-1.1.4.orig.tar.bz2. The logic is to have the unmodified original source in the orig tarball and the diffs in the diff tarball. The diff in this particular case is only a PGP key patch.
I was a bit surprised but took the info at face value. After your email, I downloaded 1.1.4 and did a diff with the .orig.bz2 and did in fact find a lot of differences. Ideally they should have been provided as patches in the .diff.bz2 tarball. So the montana config and associated changes are not in the 1.1.4 master. I am pretty sure that the
montana_confighas been used since aFLASHTOOL_KERNEL_CMD_LINEhas been used in themain.cwhich is unique to montana board. The main has been modified to look for key events. All other options are disabled in the release build except for the region update. And the region update uses tffs to loadtffs_load3 0x80007FC0;bootm0x80007FC0something at0x80007FC0and probably start bootm from there.It would be great if someone can help me and look into
tffs_loadcall and tell me how I should deceive the device to update the included u-boot and kernel with a modified one. My client is gmail and that sends attachments in base64 encoding. I am attaching the source code for u-boot as distributed by Garmin for G60 APAC v2.43. It is also available at the source at [1].Thanks for your time and efforts.
[1] http://developer.garmin.com/linux-software/nuvifoneg60apac/nuvifone-g60-apac-2.43-sources.tar.bz2
--BR; Naresh
visit me at:
http://www.naresh.se/