:: Re: [maemo-leste] [PATCH] arm: Remo…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Pali Rohár
Fecha:  
A: Oleh Kravchenko
Cc: u-boot, maemo-leste, Pavel Machek, Merlijn Wajer, Tom Rini
Asunto: Re: [maemo-leste] [PATCH] arm: Remove nokia_rx51 board
On Wednesday 19 May 2021 17:27:32 Oleh Kravchenko wrote:
> Hello Pali,
> Is there some wiki page on how to flash u-boot and Linux to N900 (JTAG,
> UART, etc.)?


Flashing UART or JTAG could be possible with proprietary Nokia flasher.
But there are just very few people with UART access to Nokia N900 so I'm
not sure if somebody has some guideline for UART and flashing.

What is working fine and is heavily tested is booting or flashing via
USB. Some information is in doc/README.nokia_rx51 file, other in 0xFFFF
manpage and I was planning to send a patch with doc update...


diff --git a/doc/README.nokia_rx51 b/doc/README.nokia_rx51
index 84d1912ddd2b..9bead311fdf8 100644
--- a/doc/README.nokia_rx51
+++ b/doc/README.nokia_rx51
@@ -21,6 +21,36 @@ called u-boot-gen-combined. It is available in following repository:

https://github.com/pali/u-boot-maemo

+Flashed image must start with 2 kB "NOLO!img" header which contains size of
+the image. Header consist of bytes "NOLO!img\x02\x00\x00\x00\x00\x00\x00\x00"
+followed by 4 byte little endian size of the image and rest of the 2 kB header
+are just zero bytes.
+
+Nokia proprietary flasher and also open source 0xFFFF flasher automatically
+prepend required "NOLO!img" header and both applications expect that image
+does not contain "NOLO!img" header. Adding "NOLO!img" header is required
+only in case using "nandwrite" tool for flashing.
+
+Open source 0xFFFF flasher is available in following repository:
+
+ https://github.com/pali/0xFFFF
+
+It is possible to load u-boot.bin via USB to N900 RAM and boot it without
+need to flashing it. Via 0xFFFF running at host PC it is done:
+
+ 0xFFFF -m u-boot.bin -l -b
+
+0xFFFF support also flashing kernel image either via USB or directly on
+N900 device. Flashing u-boot/kernel/combined image is done as:
+
+ 0xFFFF -m combined.bin -f
+
+Via 0xFFFF is possible to generate also standard flashable image in Nokia
+FIASCO format which contains metadata information like device identification
+(RX-51) and version string (v2021.04):
+
+ 0xFFFF -m RX-51:v2021.04:kernel:u-boot.bin -g u-boot.fiasco
+
There is support for hardware watchdog. Hardware watchdog is started by
NOLO so u-boot must kick watchdog to prevent reboot device (but not very
often, max every 2 seconds). There is also support for framebuffer display



> I have this device and would like to play with that.