Difference between revisions of "Didj Explorer Kernel"

From eLinux.org
Jump to: navigation, search
Line 4: Line 4:
 
1. make lf1000_ts_defconfig
 
1. make lf1000_ts_defconfig
  
2.  edit .config:
+
2.  edit .config. (we are enabling jffs2 and giving the right bootargs):
  
 
<code>
 
<code>
Line 14: Line 14:
 
</code>
 
</code>
  
3. edit include/asm/mach-types.h
+
3. edit include/asm/mach-types.h (the number has changed to 2028 - but the boot loader only knows about 1235)
  
 
(you may need to 'make' once and ctrl-c to get the mach-types file generated the first time.)
 
(you may need to 'make' once and ctrl-c to get the mach-types file generated the first time.)
Line 29: Line 29:
 
</code>
 
</code>
  
4. edit drivers/mtd/nand/lf1000.c
+
4. edit drivers/mtd/nand/lf1000.c (using didj's 9 partition scheme)
  
 
[http://pastebin.com/QK7mJapF Diff of changes to drivers/mtd/nand/lf1000.c]
 
[http://pastebin.com/QK7mJapF Diff of changes to drivers/mtd/nand/lf1000.c]

Revision as of 20:13, 17 July 2010

This is a work in progress Explains what to change in order to build the 2.6.31 LF Explorer kernel for Didj

1. make lf1000_ts_defconfig

2. edit .config. (we are enabling jffs2 and giving the right bootargs):

CONFIG_CMDLINE="mem=18M mlc_fb=0x01200000,0x01200000 init=/sbin/init console=ttyS0,115200 root=31:06 ro rootflags=noatime rootfstype=jffs2 ubi.mtd=Brio ubi.mtd=prg_Brio ubi.mtd=Cartridge"

CONFIG_JFFS2_FS=y

3. edit include/asm/mach-types.h (the number has changed to 2028 - but the boot loader only knows about 1235)

(you may need to 'make' once and ctrl-c to get the mach-types file generated the first time.)

//define MACH_TYPE_ZIR2412 1235

define MACH_TYPE_DIDJ 1235

...

//define MACH_TYPE_DIDJ 2028

4. edit drivers/mtd/nand/lf1000.c (using didj's 9 partition scheme)

Diff of changes to drivers/mtd/nand/lf1000.c


5. make

zImage is found in arch/arm/boot