Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2015, 05:17 PM   #1
hjalfi
Member
hjalfi began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Apr 2011
Device: Kindle 3g
Bare metal images via mfgtool/imx_usb_loader

I see from this thread:

https://www.mobileread.com/forums/sho....php?p=2185626

...that some people were working on running writing custom images which get deployed via mfgtool of imx_usb_loader, for experimenting with various aspects of the system.

Did anyone ever get one of these doing anything at all interesting, and if so, is the source available? For example: drawing something on to the screen, although I'd be happy enough just making the LED blink.

I know I can also go and start dissecting u-boot, but it would save time if someone had already done one.
hjalfi is offline   Reply With Quote
Old 09-26-2015, 07:12 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by hjalfi View Post
I see from this thread:

https://www.mobileread.com/forums/sho....php?p=2185626

...that some people were working on running writing custom images which get deployed via mfgtool of imx_usb_loader, for experimenting with various aspects of the system.

Did anyone ever get one of these doing anything at all interesting, and if so, is the source available? For example: drawing something on to the screen, although I'd be happy enough just making the LED blink.

I know I can also go and start dissecting u-boot, but it would save time if someone had already done one.
I was hoping that someone with a better memory than mine would tackle this one -

I only recall two -
An alternate u-boot that includes fastboot.
An alternate kernel that includes kexec support.

Both system level customizations, not the user-land customizations you seem to be asking about.
knc1 is offline   Reply With Quote
Advert
Old 10-02-2015, 02:10 PM   #3
hjalfi
Member
hjalfi began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Apr 2011
Device: Kindle 3g
Actually, I *am* looking for system level customisations; I want to use USB downloader mode to drop a binary into memory and jump to it, so that the binary runs without any OS. (I have a background in embedded systems so am used to this.)

I'm looking for a simple starting point simply to avoid the long and tedious process of trying to figure out from the u-boot code how to initialise DRAM, set up the serial port, etc.

You mention the kernel --- I did see a reference to a kexec-capable kernel, but it was intended to get written to flash and then be booted from via u-boot. Do you know of one which can be deployed and booted directly by the USB downloader? Because if so, I'd be really, really interested in that.
hjalfi is offline   Reply With Quote
Old 10-02-2015, 05:40 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by hjalfi View Post
Actually, I *am* looking for system level customisations; I want to use USB downloader mode to drop a binary into memory and jump to it.
- - - - -
I am pretty sure USB downloader mode only writes to flash.

Boot to u-boot, select bist, then use one of the binary transfer protocols to transfer to ram.
Then you can jump to it.

When you get it completed to your satisfaction, then burn it into flash and set-up u-boot to load and run it.

Duplicating the initialization done by u-boot is a big waste of time.
Plus, you will be limiting the size of your application to the size set aside for u-boot in the flash.
These SoCs boot from a reserved (fixed size) 'hidden' partition of the flash.

Just use the existing bootloader to load your bare metal application (as if it was a kernel, which is also a bare metal application).
This way you will not be limited to the size of the reserved, bootable, partition.

Also, if you don't like u-boot - Freescale also supports red-boot.

Last edited by knc1; 10-02-2015 at 05:44 PM.
knc1 is offline   Reply With Quote
Old 04-01-2016, 12:11 PM   #5
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
I am pretty sure USB downloader mode only writes to flash. ...
Actually, it can write to RAM too. In fact, that is how it loads and runs the modified uboot images in my "Kindle Select Boot" thread (and which are also used in the kubrick ISO images). I modified those uboot images to boot to main, diags, and fastboot, respectively. And yes, they load from USB downloader mode and they run in kindle RAM. The uboot source cood could be used as a base to launch custom code after it initializes SDRAM and hardware. Beware that uboot inspects the IDME vars to decide how to initialize SDRAM because not all kindles use the same RAM.

Sadly I lost the source code for the uboot mods (and many other projects) when my hard drive AND my backup drive both died within hours of each other (turned out to be bad "spiky" power supply that killed a mobo, two video cards, multiple hard drives, and more).

Last edited by geekmaster; 04-03-2016 at 08:28 PM.
geekmaster is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle Touch] Problem with Booting into fastboot with MfgTool Lukky776 Kindle Developer's Corner 0 04-07-2014 04:08 AM
Bare Knuckle Bitch mr ploppy Self-Promotions by Authors and Publishers 3 12-18-2013 05:49 AM
Bare Bones BenBanned Which one should I buy? 8 12-05-2012 08:06 AM
Free (Kindle/Nook/Ellora's Cave) His Bare Obsession (Bare Love Bk 1) by Lacey Thorn arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 2 11-14-2011 06:24 PM
The Shelves are Bare at the Entourage Edge Store obsessed2 enTourage Archive 7 04-30-2011 03:27 PM


All times are GMT -4. The time now is 11:35 PM.


MobileRead.com is a privately owned, operated and funded community.