Android Tablets Forum banner

Developing firmware updater for *BSD

2924 Views 12 Replies 5 Participants Last post by  fun_
ad hoc code partially works on NetBSD now. I'll cleanup and upload when I have a time.----uploaded here.
1 - 13 of 13 Posts
Looking forward to the upload. I could use a firmware updated that works under *NIX.
See less See more
Rockchip flash tool for NetBSD is uploaded here.tools for unpacking update.img, header/crc generator for paramater and boot.img are also available.
I think you are the only one with a working install of NetBSD on the Apad right now. So without your rootfs we can't do anything with your script can we? If you distribute your build (does it run off SDcard?), preferably with SDCard mounting functions and your tools pre-compiled, we can point your flash tool to specific files on the SDCard and just use it as a recovery image. There is a working Linux located in the mydroiddevtool I heard, if you use the 'flash to RAM' function. I am not sure what functionality is there though. Since you already have most of this working I am not even sure if that is necessary.
xaueious;12963 said:
I think you are the only one with a working install of NetBSD on the Apad right now. So without your rootfs we can't do anything with your script can we?
I'm using NetBSD for *host* machine (i.e. my PC), not on Apad.my programs basically work on any POSIX (UNIX like) OS. if you are using non-Windows machine as a host, please try them.for now, rkflash command uses ugen device driver directly, which is only available on *BSD. but it can be replaced with libusb. libusb is portable library and it works on Linux, Mac OS X, and so on.
Very cool! Anyone planning on porting this to libusb? I don't really have time for it now.. fun_: How hard would the port be? Any idea?
I think I figured out what you are saying. Thanks. I thought this script ran off the SD card or something. Sorry
See less See more
my programs are slightly updated.rkcrc now create complete file itself. (no <|> is required anymore;)rkunpack can unpack firmware for ARCHOS 7 HT and RAMos W7 now.I'll make packing utility, then porting rkflash to libusb. sorry for inconvenience;)
[quote name='fun_;13834][URL=https://sites.google.com/site/naobsd/android-tablet/apad-irobot]my programs[/URL] are slightly updated.rkcrc now create complete file itself. (no <|> is required anymore;)rkunpack can unpack firmware for ARCHOS 7 HT and RAMos W7 now.I'll make packing utility' date=' then porting rkflash to libusb. sorry for inconvenience;)[/QUOTE'] I wouldn't be sorry at all lol. Thanks for any progress.
Dear FUKAUMI Naoki,Your programs are coded very nicely, and work great. Thank you for investing time & effort into this project for the APAD, and thank you for having them under open license
. This is really needed code for all rom-makers out there.Did you sniff the USB data under WINE for example ? Or reverse-engineered from the exe on Windows ?
See less See more
Hi Asure,Sorry, my programs are free/open, but it is not GPL. please read carefully.I used SniffUSB on real Windows machine. objdump -d was also very helpful.but most important, protocol/format is very simple:)
I updated my post, i misread the comment text in your code ;)I am not good with C code, last time i made some code was in assembly on the C64 processor, way too long ago. I still see the 'logic' in code, and can modify some things, but that's it.From your experience, can it be possible to extract (read) the firmware from the device if it is in recovery modus ? (Perhaps this could be good for people with a V1 to recover, if someone dumps the parts.)
[quote name='Asure;13939]From your experience' date=' can it be possible to extract (read) the firmware from the device if it is in recovery modus ? (Perhaps this could be good for people with a V1 to recover, if someone dumps the parts.)[/QUOTE']yes, firmware (contents of flash ROM) can be read with my program in update mode(not recovey mode).I don't have/know batch1 but it seems to use same rockchip protocol, so it should be read too.(update batch1 with batch2 firmware/tool can be possible(but bricked), is it right?)without my programs, it might be possible to read ROM from mtd device if some linux command line tools are installed in android.
1 - 13 of 13 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top