Pali Rohár | 18 Feb 00:40 2013
Picon

Re: [PATCH 2/2] cold-flash: accept also OMAP3630 in the ASIC ID

On Sunday 17 February 2013 23:52:25 Aaro Koskinen wrote:
> Accept also OMAP3630 in the ASIC ID offset 4. With this patch
> it's possible communicate also with N950/N9. When plugging in
> the USB cable into a powered-off device, it seems to start in
> cold-flash mode, and currently 0xFFFF fails with "Invalid
> ASIC ID."
> 
> So far only loading & booting kernel with "0xFFFF -m
> kernel:zImage -l -b" has been tested, and it works.
> 
> WARNING: When booting a self-made kernel on N950/N9, NOLO will
> detect this and will permanently show a crappy disclaimer
> about warranty voided during the boot, even if you boot again
> with a stock Nokia kernel. This may also impact some SW
> functionality. I have no idea how to reset this condition.
> ---
>  src/cold-flash.c |   11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/src/cold-flash.c b/src/cold-flash.c
> index 9467832..74a38c7 100644
> --- a/src/cold-flash.c
> +++ b/src/cold-flash.c
>  <at>  <at>  -319,6 +319,7  <at>  <at>  int init_cold_flash(struct usb_device_info
> * dev) {
> 
>  	uint8_t asic_buffer[127];
>  	int asic_size = 69;
> +	char * chip;

(Continue reading)

Pali Rohár | 18 Feb 00:39 2013
Picon

Re: [PATCH 0/2] 0xFFFF: small fixes to enable use with N950/N9

On Sunday 17 February 2013 23:52:23 Aaro Koskinen wrote:
> Hi,
> 
> I have started to use 0xFFFF to boot & test mainline kernels
> (with -l -b) on Nokia devices. These small fixes enable to
> also do that with N950/N9. I like 0xFFFF because it enables
> to give up using Nokia flasher and I can move my development
> to non-x86 enviroment. Thanks.
> 

For adding support for new device look at files:
src/device.h
src/device.c
src/usb-device.c

There is list of known devices (enum device) and list of known 
usb ids (struct usb_flash_device).

Also 0xFFFF does not have support for Mk II flashing protocol 
which is used maybe for all harmattan operations. N900 using it 
only for flashing eMMC. So for more options you will need it... 
Some info is in doc/mkii.

Harmattan flashing is booting ape-algo linux kernel image (with 
included Mk II server application) via NOLO protocol, so booting 
kernel without flashing should work...

Are you going to implement more parts for N950/N9 support?

--

-- 
(Continue reading)

Pali Rohár | 18 Feb 00:39 2013
Picon

Re: [PATCH 2/2] cold-flash: accept also OMAP3630 in the ASIC ID

On Sunday 17 February 2013 23:52:25 Aaro Koskinen wrote:
> So far only loading & booting kernel with "0xFFFF -m
> kernel:zImage -l -b" has been tested, and it works.

0xFFFF has code for autodetection of image type from file header. 
So you can use:

$ 0xFFFF -m zImage -l -b

If it does not detecting your kernel image correctly, see 
function image_type_from_data in file src/image.c.

--

-- 
Pali Rohár
pali.rohar@...
_______________________________________________
0xffff mailing list
0xffff@...
http://lists.nopcode.org/listinfo.cgi/0xffff-nopcode.org
Pali Rohár | 18 Feb 00:39 2013
Picon

Re: [PATCH 1/2] cold-flash: correct chip/soc name

On Sunday 17 February 2013 23:52:24 Aaro Koskinen wrote:
> RX-51/N900 has OMAP3430, and it seems this is what the ASIC ID
> field at offset 4 refers to. Fix the comment and printf.

Right, this was my mistake.

--

-- 
Pali Rohár
pali.rohar@...
_______________________________________________
0xffff mailing list
0xffff@...
http://lists.nopcode.org/listinfo.cgi/0xffff-nopcode.org
Pali Rohár | 18 Feb 00:15 2013
Picon

Re: [PATCH 2/2] cold-flash: accept also OMAP3630 in the ASIC ID

On Sunday 17 February 2013 23:52:25 Aaro Koskinen wrote:
> WARNING: When booting a self-made kernel on N950/N9, NOLO will
> detect this and will permanently show a crappy disclaimer
> about warranty voided during the boot, even if you boot again
> with a stock Nokia kernel. This may also impact some SW
> functionality. I have no idea how to reset this condition.

This is because X-Loader/NOLO switching to open mode when booting 
kernel which is not signed. Harmattan flasher and NOLO added more 
options to usb communication which was never reverse enginnered. 
So 0xFFFF does not support signatures.

The only way how to disable disclaimer and switch to non open 
mode is to do full reflash original fiasco image with original 
harmattan flasher.

There is also way to remove/change disclaimer image, but only 
from non open mode on harmattan. Install developer-mode and run 
as root this command:

$ disclaimer-cal remove View-openmode

See for more info:
http://talk.maemo.org/showthread.php?t=84659
http://talk.maemo.org/showthread.php?t=88649
http://talk.maemo.org/showthread.php?t=83199

--

-- 
Pali Rohár
pali.rohar@...
(Continue reading)

pancake | 21 Dec 14:42 2009

segfault fix

I have commited a fix to a stupid segfault that was only appearing when 
compiling with -O2
and added some more checks to ensure more read/write ops are done correctly.

The code certainly needs a cleanup, but it is quite smart to centralize 
all such kind of
checks. I'm still waiting for the n900. so i'll probably continue the 
development when the
device reaches my hands.

Thanks for reporting and have fun :)

--pancake
pancake | 19 Oct 12:48 2009

0xFFFF on n900

I've a n900 for few days, so I'm hardly testing it and it's good to say that
i'm really happy with it. The device looks really nice.

I'm still writing down a list of bug reports for Nokia about usability 
and so on,
but the main impression is good.

The first thing I tried it was to port the flasher. So I moved the 
repository into
mercurial. Yeah, pvc is kinda crappy I know. So you can now download the 
source of
the flasher from here:

  hg clone http://hg.youterm.com/0xFFFF

The last tip implements the n900 device identification via USB and locally.

I have also managed to make the dump of the nand via /dev/mtd. The new 
memory layout
is quite cleaner than before. I didnt documented anywhere but it's 
something like

XLOADER -> NOLO -> rootfs

they still have the configfs (i will write a parser library for it at 
some point),
the Xloader is just used to handle the flasher and load the NOLO which 
is actually
a kernel loader with the kernel inside and then jumps tot he UBIfs rootfs.

(Continue reading)

pancake | 7 Mar 01:24 2008

Web updates

http://nopcode.org/0xFFFF/

:)
pancake | 6 Mar 18:34 2008

GUI Flasher

I'm pleased to announce the first version of the GUI for the Free Nokia Internet Flasher
(the 0xFFFF). I named it 'goxf' (yeah looks as weird as the other) ;)

I just spend two funny nights playing with Gtkaml, Vala, Unix IPC and the flasher
internals to get an initial working version:

  http://news.nopcode.org/goxf.gif
  http://news.nopcode.org/goxf2.gif

My main idea is to keep the frontend independent to the flasher, so, being able to
use the same frontend for flashing a Neo1973 or an HTC phone (both flasher sources
are available).

Do you think D-Bus is better solution for async communication between process of
different user levels? I'm not very familiar to dbus yet. But I can change the IPC
interface easily. 

I understand that a GUI for flashing should be as cleaner and simpler as possible, trying
to avoid stupid confusions to the user and avoiding errors, so, I'm opened to
proposals, ideas, etc..

Feel free to subscribe to the mailing list for further discussion :)

I plan to add support to pack/unpack fiasco images from the same gui. (next week?)

I get so much fun coding it with GTKAML. I encourage you to test it :)

Here's the source of the gui:

  http://news.nopcode.org/miau/pvc.cgi?prj=0xFFFF&leaf=2b622cf2/1-pancake <at> dazo
(Continue reading)

pancake | 5 Mar 18:46 2008

initial gui

I have played a bit with Vala and GtkAml and implemented a not-yet-working, but
visually acceptable gui for the flasher using shared queues to communicate the
flasher (root user) with the gui (normal user).

These changes have been commited into the repository.

I plan to have an initial working version for the end of the week.

Stable 0.4 release will be near the end of the month.

Have fun!

http://news.nopcode.org/goxf.png

--pancake
pancake | 18 Feb 01:31 2008

initial n810 support

I have recently adquired the n810 and started playing with the flasher to make it
work with Nolo 1.7 which is shipped with the latest Internet Tablet.

I have also fixed some issues appeared in the lasts commits in repository. I think
the code is almost stable and needs some test of flashing n770,800 and 810 devices
for a stable 0.3.2 release.

Any volunteer for testing?

  http://news.nopcode.org/pvcroot/0xFFFF-0.3.2.tar.gz

Sorry for this long wait :)

I plan to release the GUI for the 0.4

Have fun!

  --pancake

Gmane