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 10-22-2012, 01:52 PM   #16
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 pepijndevos View Post
I set the initramfs to an empty string, so i don;t think so.
I don't have a tequila .list, there is a joshime .list though, maybe I could try that.

Options to the kernel? No idea. I gave ARCH and CROSS_COMPILE to make. The rest is probably the defaults.

I don't know that it doesn't run, I just know the Kindle doesn't start with that kernel flashed to it.

Network console? No?! How does that work? I'll read the configs a bit...
kernel-source_version-number/Documentation/**

Kernel command line options -
The kernel is a regular C program - just like an application program with: main(argc, **argv).

The stored options for start-up come from:
Passed by the loader (in this case, u-boot) ;
In newer versions of the kernel, stored in the kernel at build-time.
(NO, don't ask me if your version does that, I don't recall what version the "stored command line" was added.)

When passed by u-boot, u-boot has them stored in its environment.
Same place it keeps its other scripting strings.

If you don't have the list (or the directory) for the initramFS - make one of your own choosing.
Starting point: "Early Userspace" in the kernel source documentation tree.
AND/OR
Extract the initramFS from one of the factory kernel images.
It will most likely be a gzip'd cpio file appended to the kernel.
(gzip'd cpio because this is a fairly old kernel version)

Your primary help source is the /Documentation/** tree in the source file.

Other stuff that might give you a feel for what you need to do:
http://www.christian-hoff.com/?p=16

There are some technical differences between the boot image used by MIPS and the one used by ARM, but the principles are the same:
http://minimodding.com/RecipesIndex
http://minimodding.com/SnippetsIndex
http://minimodding.com/SystemRescue
You can probably find that site's owner lurking around here, somewhere.
knc1 is offline   Reply With Quote
Old 10-22-2012, 01:55 PM   #17
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
I'm sorry, how do I see if it booted at all with a (usb?) cable? Only thing I can think of is to check lsusb.

In fact, I do have the old kernel on there again.

I found this: https://www.mobileread.com/forums/sho....php?p=2187253
And this: http://lxr.linux.no/linux+v2.6.32/Do...netconsole.txt

But I have no USBNET variable, nor any idea what to put in it. So I doubt there is any interface to connect to until the userspace sets up wifi and usb networking.

Oh, and i tried to use the joshime .list, but that produced a lot of errors.
pepijndevos is offline   Reply With Quote
Advert
Old 10-22-2012, 02:01 PM   #18
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
Both u-boot and the kernel can set up wifi and networking.
That is how it "network boots".
Watch your wireless router for a connection attempt (you might have to set ip= in the kernel command line).

Since the only way to communicate with u-boot is via its serial port - -
You are sort-of SOL without the serial cable.
Ref:
https://wiki.mobileread.com/wiki/Hard...ex#Serial_Port
Read the first caption line to that section please.
knc1 is offline   Reply With Quote
Old 10-22-2012, 02:10 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch

I gave chris a bump about this thread FWIW.
He has made available the likely changes needed for kindle touch support now. on the original off-site thread. Many thanks to Chris on that one.


Hope you get this sorted mate.
twobob is offline   Reply With Quote
Old 10-22-2012, 02:24 PM   #20
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 pepijndevos View Post
Oh, and i tried to use the joshime .list, but that produced a lot of errors.
There are alternatives, but everything requires more documentation reading.

Also, studying the start-up scripting in the factory initramFS image should help get a handle on what you want the kernel to do on start-up.

Specific directions at this point?
I think Lewis Carroll said it best:
http://philosiblog.com/2011/07/13/if...e-youre-going/
knc1 is offline   Reply With Quote
Advert
Old 10-22-2012, 02:28 PM   #21
pepijndevos
Connoisseur
pepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austenpepijndevos has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 71
Karma: 23166
Join Date: Sep 2012
Device: Kindle 4NT
Yea, ordered a serial cable already. But if this netconsole can save me cracking my kindle open, that would be sweet.

I've been mailing with Chris, trying to run his OTG kernel. I guess he knows what it takes to compile a K4 kernel.

I guess I need to copy the initramfs from the stock kernel. His OTG kernel is similar in size to the stock kernel, IIRC.
pepijndevos is offline   Reply With Quote
Old 10-22-2012, 03:04 PM   #22
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
Why don't you read the scripting in the initramfs?
It might provide you with information on how to make things work the way you want them to.
You certainly will not know any less than before you read it, since it can't suck the knowledge you already have out of your head.

Having "network console" built into the kernel will not do you much good when you need to communicate with u-boot to change kernel command line options **before** the kernel is loaded and ran.
knc1 is offline   Reply With Quote
Old 10-24-2012, 03:57 PM   #23
choff
Member
choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.choff walks where angels fear to fly.
 
Posts: 12
Karma: 152738
Join Date: Jul 2010
Device: Kindle DXG
Initramfs and kernel compilation

Hi all,

it is true that you cannot run the kernel without an initramfs.

So you need to have an initramfs. But where can you get one?

The easiest method is to use the initramfs of the Amazon kernel as a template. Normally no modifcations to the Amazon initramfs are necessary, so you will just have to repack that initramfs. The resulting cpio archive can be used as input CONFIG_INITRAMFS_SOURCE.

I have updated the compilation post in order to reflect this.

There are also new detailed instructions available on how the initramfs can be extracted from the Amazon kernel. I added this information this post: http://www.christian-hoff.com/?p=16

Hope this helps!

And I wish you good luck with your compilation attempts.

Regards,

Chris
choff is offline   Reply With Quote
Old 10-24-2012, 04:07 PM   #24
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 choff View Post
it is true that you cannot run the kernel without an initramfs.
- - - - snip - - - -
Regards,

Chris
That is not true in the general case.

It might be true for your current application of a kernel to a specific device, but your post did not include that information.

The only requirements to "run a kernel" is:
a file system to mount as the root file system,
a program to run as process ID 1,
/dev/console,
as a result of the second requirement, often also:
/dev/null

There may be additional requirements of what process you run, but the kernel itself will run with the above requirements met.
knc1 is offline   Reply With Quote
Old 10-24-2012, 04:33 PM   #25
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 choff View Post
Hi all,

it is true that you cannot run the kernel without an initramfs.

So you need to have an initramfs. But where can you get one?

The easiest method is to use the initramfs of the Amazon kernel as a template. Normally no modifcations to the Amazon initramfs are necessary, so you will just have to repack that initramfs. The resulting cpio archive can be used as input CONFIG_INITRAMFS_SOURCE.

I have updated the compilation post in order to reflect this.

There are also new detailed instructions available on how the initramfs can be extracted from the Amazon kernel. I added this information this post: http://www.christian-hoff.com/?p=16

Hope this helps!

And I wish you good luck with your compilation attempts.

Regards,

Chris
Welcome to the "2600 club".
geekmaster is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buildroot a linux 2.6.26-lab126 kernal. (3.3) twobob Kindle Developer's Corner 155 05-08-2016 12:08 AM
PRS-T1 How-to: Compiling the kernel and kernel modules altruizine Sony Reader Dev Corner 9 09-03-2012 09:12 PM
8.0.26 won't compile iomari Calibre 1 11-16-2011 04:01 AM
Compile from Source krischik Calibre 8 06-04-2010 08:17 AM
iLiad How to compile the iRex stock kernel and modules? jharker iRex Developer's Corner 7 11-22-2008 04:50 AM


All times are GMT -4. The time now is 07:46 AM.


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