Hello everyone!
I got osmocom-bb running on a gta02 with a self-built Debian image. osmocon-bb was compiled natively on the gta02. Everything works great using:
$ ./osmocon -i 13 -m romload -p /dev/ttySAC0 layer1.highram.bin
as described at:
http://bb.osmocom.org/trac/wiki/OpenMoko
It bugs me, however, that the proprietary openmoko 11 firmware is still lingering in the baseband flash. So I would like to replace it permanently with the osmocom-bb layer 1 firmware. That didn't work so far.
First, I attempted to use the FLUID binary to flash layer1.highram.bin. The manual firmware update that is described at:
http://wiki.openmoko.org/wiki/Flashing_the_GSM_Firmware
suggests to use the FLUID binary from the package:
http://people.openmoko.org/joerg/calypso_moko_FW/fluid_0.0+svn20070817-r2_ar...
I tried to run:
$ FLUID_PORT=/dev/ttySAC0 ./fluid.exe -oo -od13,13 -b 115200 -f layer1.highram.bin
This gives me:
FLUID Revision 2.27, (23 Aug 2004). Copyright Texas Instruments, 2001-2004. Reading image file: '/usr/local/src/osmocom-bb/src/target/firmware/board/gta0x/layer1.highram.bin'WARNING: Illegal hex line: ERROR(55): File format/syntax error
I also played with the options but to no avail. So apparently fluid expects the firmware image to be in a particular format.
Then I tried the osmoload utility. For that I started osmocon with:
$ ./osmocon -i 13 -l /tmp/osmocom_loader -m romload -p /dev/ttySAC0 loader.highram.bin
osmocon then says:
Sending Calypso romloader beacon...
On another console I then turned on the GSM device and tried to request information about flash using:
$ ./osmoload -l /tmp/osmocom_loader finfo
This gives me:
Requesting flash layout info Query timed out.
What am I doing wrong? Are there fundamental reasons why this cannot work? Any hints would be much appreciated!
Thanks,
Arno
Requesting flash layout info Query timed out.
What am I doing wrong? Are there fundamental reasons why this cannot work? Any hints would be much appreciated!
I think the openmoko flash is not supported yet. you could try to add support for it.
Alternatively you could try to make fsogsmd or qtmoko's telephony daemon load the osmocombb firmware at boot.
Denis.
Hi list,
On 20/06/2012 23:18, Denis 'GNUtoo' Carikli wrote:
Requesting flash layout info Query timed out.
What am I doing wrong? Are there fundamental reasons why this cannot work? Any hints would be much appreciated!
I think the openmoko flash is not supported yet. you could try to add support for it.
Alternatively you could try to make fsogsmd or qtmoko's telephony daemon load the osmocombb firmware at boot.
I have a beginning of code doing this with DeforaOS' Phone telephony application (as on hackable:1 dse1 and dse2 releases, see http://trac.hackable1.org/trac/wiki/DeforaOSSmartphone)
It's not working yet, but it's just a matter of sitting down a bit longer in front of a computer, with the proper tools ready and an Openmoko or two around. Could be a nice challenge for an Osmocom meeting at the CCCB. Anyone interested please let me know and we could organize it.
Cheers,
On 06/20/2012 11:39 PM, Pierre Pronchery wrote:
On 20/06/2012 23:18, Denis 'GNUtoo' Carikli wrote:
I think the openmoko flash is not supported yet. you could try to add support for it.
Alternatively you could try to make fsogsmd or qtmoko's telephony daemon load the osmocombb firmware at boot.
I have a beginning of code doing this with DeforaOS' Phone telephony application (as on hackable:1 dse1 and dse2 releases, see http://trac.hackable1.org/trac/wiki/DeforaOSSmartphone)
It's not working yet, but it's just a matter of sitting down a bit longer in front of a computer, with the proper tools ready and an Openmoko or two around. Could be a nice challenge for an Osmocom meeting at the CCCB. Anyone interested please let me know and we could organize it.
I would definitely prefer to have the firmware in flash. I'm not sure I have the necessary experience to add support but I will look into it.
Thanks, Arno
Hi Arno and others,
On Thu, Jun 21, 2012 at 11:14:01AM +0200, Arno Onken wrote:
I would definitely prefer to have the firmware in flash. I'm not sure I have the necessary experience to add support but I will look into it.
The part on the GTA02 is a Samsung K5A3240CT multi-chip memory package: (32Mbit flash, 4Mbit SRAM), with two banks:
Bank1: 8Mbit Eight 8Kbyte blocks Fifteen 64kByte blocks
Bank2: 24Mbit fourty-eight 64kByte blocks
The manufactuerer ID is 0xEC, device code is 0x22A0 (top boot block).
Your first step in supporting it should be the following patch:
diff --git a/src/target/firmware/flash/cfi_flash.c b/src/target/firmware/flash/cfi_flash.c index 8ecd206..7d04906 100644 --- a/src/target/firmware/flash/cfi_flash.c +++ b/src/target/firmware/flash/cfi_flash.c @@ -73,6 +73,7 @@ struct cfi_query { enum cfi_manuf { CFI_MANUF_ST = 0x0020, CFI_MANUF_INTEL = 0x0089, + CFI_MANUF_ITT = 0x00EC, };
/* algorithm ids */ @@ -533,7 +534,8 @@ int flash_init(flash_t * flash, void *base_addr) if (res) { return res; } - if (m_id != CFI_MANUF_INTEL && m_id != CFI_MANUF_ST) { + if (m_id != CFI_MANUF_INTEL && m_id != CFI_MANUF_ST && + m_id != CFI_MANUF_ITT) { return -ENOTSUP; }
Hi Denis,
On Wed, Jun 20, 2012 at 11:18:48PM +0200, Denis 'GNUtoo' Carikli wrote:
What am I doing wrong? Are there fundamental reasons why this cannot work? Any hints would be much appreciated!
I think the openmoko flash is not supported yet. you could try to add support for it.
What exactly do you think is required to do so? I always thought that the OsmocomBB flash code works with all CFI compatible flashes?
I can definitely dig out the particular part number / data sheet of the memory used on the Openmoko GTA02, but I don't actually think that this should be required...
baseband-devel@lists.osmocom.org