| 
			
			 | 
		#1 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71 
				Karma: 23166 
				Join Date: Sep 2012 
				
				
				
				Device: Kindle 4NT 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Compile lab126 kernel
			 
			
			
			I'm looking to compile the source code for the 4.1.0 kernel released by Amazon on my Ubuntu laptop. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I used this as a reference: http://www.christian-hoff.com/?p=44 When I try to compile the uImage, it gives the following error: Code: 
	linux-2.6.31/scripts/gen_initramfs_list.sh: Cannot open 'initramfs-tequila.list' Less important questions are: What's up with the mario references? Is yoshime for Kindle 4 Mario Edition? Is tequila a mario character? Is tequila a codename for yoshi? A code name for a code name, right. I have a initramfs.yoshime.list that seems legit.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 BLAM! 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506 
				Karma: 26047202 
				Join Date: Jun 2010 
				Location: Paris, France 
				
				
				Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@pepijndevos: We used to disable CONFIG_INITRAMFS_SOURCE when building K2/K3 kernels. That might help here, too  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 .
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 but forgot what it's like 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741 
				Karma: 2345678 
				Join Date: Dec 2011 
				Location: north (by northwest) 
				
				
				Device: Kindle Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 yoshime stands for yoshi Millenium Edition, in memory of that epically failed Windows   (I'm just kidding.) No, really. (No, I'm kidding.)Paperwhite is based on yoshime3 architecture and has a codename celeste.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 No, really.  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71 
				Karma: 23166 
				Join Date: Sep 2012 
				
				
				
				Device: Kindle 4NT 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			right. The point is: will you be using the initramfs stuff or not? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I build and happily run my kindle 3 kernel without that as Niluje has said above. So if you can simply do as instructed above then it will bypass the need. This is documented on several threads, including my buildroot 3.3 thread, The YianLu thread, and also others IIRC. : )  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 BLAM! 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506 
				Karma: 26047202 
				Join Date: Jun 2010 
				Location: Paris, France 
				
				
				Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Then yup, don't need an initramfs/initrd  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Carpe diem, c'est la vie. 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433 
				Karma: 10773670 
				Join Date: Nov 2011 
				Location: Multiverse 6627A 
				
				
				Device: K1 to PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FWIW, I saw code comments signed by a lab126 programmer whose name was Yoshime.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71 
				Karma: 23166 
				Join Date: Sep 2012 
				
				
				
				Device: Kindle 4NT 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			No result for YianLu, but the buildroot thread does indeed mention this. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Well, it got a little further, but it's stuck again. As Chris notes, there are a few includes missing. Like him, I added these files from Kindle touch. I came upon another naming mystery. Finkle! Boardid.h defines BOARD_ID_TEQUILA, BOARD_ID_TEQUILA_EVT1 and BOARD_ID_TEQUILA_EVT2, but the compiler whines about BOARD_ID_FINKLE_EVT1 being undeclared in arch/arm/linux/setup.c If Finkle is another piece of hardware, I assume it's safe to add a stub value for it? I would like to thank Amazon for their care and attention to detail while generously making their obligatory GPL release. [edit] FYI Kindle 4.1 need KINDLE_VERSION defined in kindle_version.h, rather than VERSION_TAG. Last edited by pepijndevos; 10-22-2012 at 05:49 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Yep... KINDLE_VERSION for the later models VERSION_TAG for the 3 IIRC Niluje reminded me of this somewhere on that thread. Glad you caught it.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71 
				Karma: 23166 
				Join Date: Sep 2012 
				
				
				
				Device: Kindle 4NT 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Erm, the resulting uImage is a whole MB smaller than my backup and doesn't run. Sadly, I don't have a 1.8v USB serial yet, so i have no idea what's wrong.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | |
| 
			
			
			
			 Going Viral 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212 
				Karma: 18210809 
				Join Date: Feb 2012 
				Location: Central Texas 
				
				
				Device: No K1, PW2, KV, KOA 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 If not, that probably accounts for the size difference. What command line options are you passing to the kernel? How do you know that "it doesn't run" without a connection to the kernel operator's console port? Did you build it with "network console" enabled instead of the serial port?  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Connoisseur 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71 
				Karma: 23166 
				Join Date: Sep 2012 
				
				
				
				Device: Kindle 4NT 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			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...  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 ( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586 
				Karma: 6299993 
				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 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Grab a cable. check if it has booted at all. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	You can always roll back to your older kernel if you need to actually use the device ![]() Nice work on actually getting it to build! : D step 1 done with  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			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 01:08 AM | 
| PRS-T1 How-to: Compiling the kernel and kernel modules | altruizine | Sony Reader Dev Corner | 9 | 09-03-2012 10:12 PM | 
| 8.0.26 won't compile | iomari | Calibre | 1 | 11-16-2011 05:01 AM | 
| Compile from Source | krischik | Calibre | 8 | 06-04-2010 09:17 AM | 
| iLiad How to compile the iRex stock kernel and modules? | jharker | iRex Developer's Corner | 7 | 11-22-2008 05:50 AM |