Building 2.6 cvs head on db1550
I'm having problems building 2.6 head from the linux-mips cvs. There were a number of build errors with the /arch/mips/config/db1550-defconfig file. Eventually, it built with a number of fixes. Here's the diff:
Index: arch/mips/Kconfig
===================================================================
RCS file: /home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.96
diff -r1.96 Kconfig
583a584
Quoted 1 line
select
DMA_NONCOHERENT
Index: arch/mips/Makefile
===================================================================
RCS file: /home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.176
diff -r1.176 Makefile
19c19
< 32bit-tool-prefix = mipsel-linux-
---
Quoted 1 line
32bit-tool-prefix = mipsel-unknown-linux-gnu-
Index: arch/mips/mm/ioremap.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/mm/ioremap.c,v retrieving revision 1.19
diff -r1.19 ioremap.c
99a100,110
Quoted 9 lines
* * Allow physical addresses to be fixed up to help 36 bit
* * peripherals.
* */
staticphys_tdef_fixup_bigphys_addr(phys_t phys_addr, phys_t size){ return phys_addr; }
phys_t(*fixup_bigphys_addr)(phys_tphys_addr,phys_tsize) =
def_fixup_bigphys_addr;
Quoted 2 lines
/*
121a133,134
Quoted 2 lines
phys_addr = fixup_bigphys_addr(phys_addr, size);
Index: drivers/mtd/maps/db1550-flash.c
===================================================================
RCS file: /home/cvs/linux/drivers/mtd/maps/db1550-flash.c,v retrieving revision 1.1
diff -r1.1 db1550-flash.c
22c22
< #include <asm/au1000.h>
---
Quoted 1 line
#include <
asm/mach-au1x00/au1000.h>
Index: drivers/pcmcia/Makefile
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/Makefile,v retrieving revision 1.34
diff -r1.34 Makefile
46a47
Quoted 1 line
au1x00_ss-$(CONFIG_MIPS_DB1550) += au1000_db1x00.o
Index: drivers/pcmcia/au1000_generic.c
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/au1000_generic.c,v retrieving revision 1.14
diff -r1.14 au1000_generic.c
80c80
< #elif defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) || defined(CONFIG_MIPS_DB1500)
---
Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500) || defined(CONFIG_MIPS_DB1550) 152,153d151
< printk(KERN_DEBUG, "%s initializing socket %u\n", __FUNCTION__, skt->nr);
<
315,316d312
< printk(KERN_ERR, "%smap (%d) out of range\n",
< __FUNCTION__, map->map);
339,340d334
< printk(KERN_ERR, "%s map (%d) out of range\n",
< __FUNCTION__, map->map);
353c347
< map->sys_start = skt->phys_attr + map->card_start;
---
Quoted 1 line
map->static_start = skt->phys_attr + map->card_start;
356c350
< map->sys_start = skt->phys_mem + map->card_start;
---
Quoted 1 line
map->static_start = skt->phys_mem + map->card_start;
359,361c353,354
< map->sys_stop=map->sys_start+MAP_SIZE;
< debug(4, "set_mem_map %d start %Lx stop %Lx card_start %x\n",
< map->map, map->sys_start, map->sys_stop,
---
Quoted 2 lines
debug(4, "set_mem_map %d start %Lx card_start %x\n", map->map, map->sys_static,
Index: drivers/pcmcia/au1000_generic.h
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/au1000_generic.h,v retrieving revision 1.1
diff -r1.1 au1000_generic.h
48c48
< #elif defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) || defined(CONFIG_MIPS_DB1500)
---
Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500) || defined(CONFIG_MIPS_DB1550)
Index: include/asm-mips/bootinfo.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/bootinfo.h,v retrieving revision 1.75
diff -r1.75 bootinfo.h
177a178
Quoted 1 line
#define
MACH_DB15509 /* Au1550-based eval board */
Index: include/asm-mips/serial.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/serial.h,v retrieving revision 1.59
diff -r1.59 serial.h
215c215
< .irq = AU1550_UART3_INT, .flags = STD_COM_FLAGS \
---
Quoted 1 line
.irq = AU1550_UART3_INT, .flags = STD_COM_FLAGS, \
After building and loading the kernel, it panics:
YAMON> go . idebus=50 root=/dev/hdg1
Linux version 2.6.9-rc2 (ajain@debianFAI) (gcc version 3.3.2) #3 Thu Sep 30 16:4
CPU revision is: 03030200
AMD Alchemy Au1550/Db1550 Board
(PRId 03030200) @ 396MHZ
BCLK switching enabled!
Determined physical RAM map: memory: 0c000000 @ 00000000 (usable) Built 1 zonelists
Kernel command line: idebus=50 root=/dev/hdg1 console=ttyS0,115200ide_setup: idebus=50
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB 4-way, linesize 32 bytes.
PID hash table entries: 1024 (order: 10, 16384 bytes) calculating r4koff... 00060ae0(396000)
CPU frequency 396.00 MHz
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 189952k/196608k available (2771k kernel code, 6524k reserved, 668k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Non-coherent PCI accesses enabled
Can't analyze prologue code at 803b373c
Linux Kernel Card Services
options: [pci]
Reserved instruction in kernel code in arch/mips/kernel/traps.c::do_ri, line 61:
Cpu 0
$ 0 : 00000000 80490000 fffffffa c000305c
$ 4 : 8048bad0 0000000f 803ca06c 00000030
$ 8 : 00000000 812c9078 00000001 00000001
$12 : 00000003 ffffffff 0000000a 00000000
$16 : 8048baf0 8048bad0 804766d0 00000000
$20 : 00000000 00000000 00000000 00000000
$24 : 00000010 812bf2c9
$28 : 811fe000 811fff10 00000000 80289ba4
Hi : 08366dd9
Lo : 1db6cb20
epc : 80289adc zlib_inflateInit2_+0x60/0xf0 Not tainted
ra : 80289ba4 zlib_inflateInit_+0x18/0x24
Status: 1000fc03 KERNEL EXL IE
Cause : 00800028
PrId : 03030200
Process swapper (pid: 1, threadinfo=811fe000, task=811fd8b8)
Stack : 8048baf0 00000000 804766d0 00000000 8048baf0 00000000 80289ba4
8016766c
00000000 00000000 00000000 80221f50 80228a88 8046b7cc 8046ad54
8046ad2c
00000000 00000000 804765d4 8046b9f0 00000000 00000000 00000000
00000000
8045d7c8 8045d7c8 80470e30 80467a54 00000000 00000000 803b6c7c
00000000
00000000 8045d8b8 00000000 00000000 00000000 00000000 801006dc
00000000
...
Call Trace:
[<80289ba4>] zlib_inflateInit_+0x18/0x24
[<8016766c>] vmalloc+0x14/0x20
[<80221f50>] init_inodecache+0x30/0x50
[<80228a88>] cramfs_uncompress_init+0x84/0x9c
[<8046b7cc>] journal_init_caches+0x2c/0x44
[<8046ad54>] eventpoll_init+0xac/0xdc
[<8046ad2c>] eventpoll_init+0x84/0xdc
[<8046b9f0>] init_cramfs_fs+0x10/0x28
[<8045d7c8>] do_initcalls+0x50/0x108
[<8045d7c8>] do_initcalls+0x50/0x108
[<80470e30>] sock_init+0x54/0x6c
[<80467a54>] sysctl_init+0x28/0x34
[<8045d8b8>] do_basic_setup+0x38/0x44
[<801006dc>] init+0x3c/0x118
[<80107cd4>] kernel_thread_helper+0x10/0x18
[<80107cc4>] kernel_thread_helper+0x0/0x18
Code: 2463005c ac83001c ac800018 <ac600014> 8c82001c 04a0001c ac40000c
24a
Kernel panic - not syncing: Attempted to kill init!After fooling with make menuconfig (turned off 64 bit support, PCMCIA, NFS, etc.) I got it to the point where it would load, but then couldn't mount root from hdg1. It cannot seem to find the hard drive at all.
2.4.25 correctly boots and mounts root from the ide drive.
Has anyone gotten the 2.6 kernel from cvs head to boot on a db1550, and successfully mount root from an ide hard drive? If so, how?
Thanks in advance,
Christian
Quoted 11 lines · Christian Hecimovic
I'm having problems building 2.6 head from the linux-mips cvs. There were a number of build errors with the /arch/mips/config/db1550-defconfig file. Eventually, it built with a number of fixes. Here's the diff:
Index:
arch/mips/Kconfig
===================================================================
RCS file:/home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.96
diff -r1.96Kconfig
583a584Quoted 1 line
select
DMA_NONCOHERENT
Read Documentation/SubmittingPatches (diff -up), please!
Quoted 9 lines
Index:
arch/mips/Makefile
===================================================================
RCS file:/home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.176
diff -r1.176Makefile
19c19
< 32bit-tool-prefix = mipsel-linux-
---Quoted 1 line
32bit-tool-prefix = mipsel-unknown-linux-gnu-
This is specific to your setup -- most people use the shorter form for
whatever reason (less typing, less disk space, etc.). You may invoke `make "CROSS_COMPILE=mipsel-unknown-linux-gnu-" <whatever>' for an override.
The rest is system-specific; I can't comment.
Maciej
Quoted 3 lines · Christian Hecimovic
I'm having problems building 2.6 head from the linux-mips cvs. There were a number of build errors with the /arch/mips/config/db1550-defconfig file. Eventually, it built with a number of fixes. Here's the diff:
I have fixes for all these problems and will push them this coming week.
<snip>
Quoted 81 lines
After building and loading the kernel, it panics:
YAMON> go . idebus=50 root=/dev/hdg1
Linux version 2.6.9-rc2 (ajain@debianFAI) (gcc version 3.3.2) #3 Thu Sep 30 16:4
CPU revision is: 03030200
AMD Alchemy Au1550/Db1550 Board
(PRId 03030200) @ 396MHZ
BCLK switching enabled!
Determined physical RAM map: memory:0c000000@ 00000000 (usable) Built 1 zonelists
Kernel command line: idebus=50 root=/dev/hdg1 console=ttyS0,115200ide_setup: idebus=50
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB 4-way, linesize 32 bytes.
PID hash table entries: 1024 (order: 10, 16384 bytes)
calculating r4koff... 00060ae0(396000)
CPU frequency 396.00 MHz
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 189952k/196608k available (2771k kernel code, 6524k reserved, 668k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Non-coherent PCI accesses enabled
Can't analyze prologue code at803b373c
Linux Kernel Card Services
options: [pci]
Reserved instruction in kernel code in arch/mips/kernel/traps.c::do_ri, line 61:
Cpu 0$ 0 : 00000000 80490000 fffffffa c000305c $ 4 : 8048bad0 0000000f 803ca06c 00000030 $ 8 : 00000000 812c9078 00000001 00000001 $12 : 00000003 ffffffff 0000000a 00000000 $16 : 8048baf0 8048bad0 804766d0 00000000 $20 : 00000000 00000000 00000000 00000000 $24 : 00000010 812bf2c9 $28 : 811fe000 811fff10 00000000 80289ba4 Hi : 08366dd9 Lo : 1db6cb20 epc : 80289adc zlib_inflateInit2_+0x60/0xf0 Not tainted ra : 80289ba4 zlib_inflateInit_+0x18/0x24 Status: 1000fc03 KERNEL EXL IE Cause : 00800028 PrId : 03030200 Process swapper (pid: 1, threadinfo=811fe000, task=811fd8b8) Stack : 8048baf0 00000000 804766d0 00000000 8048baf0 00000000 80289ba4 8016766c 00000000 00000000 00000000 80221f50 80228a88 8046b7cc 8046ad54 8046ad2c 00000000 00000000 804765d4 8046b9f0 00000000 00000000 00000000 00000000 8045d7c8 8045d7c8 80470e30 80467a54 00000000 00000000 803b6c7c 00000000 00000000 8045d8b8 00000000 00000000 00000000 00000000 801006dc 00000000 ... Call Trace: [<80289ba4>] zlib_inflateInit_+0x18/0x24 [<8016766c>] vmalloc+0x14/0x20 [<80221f50>] init_inodecache+0x30/0x50 [<80228a88>] cramfs_uncompress_init+0x84/0x9c [<8046b7cc>] journal_init_caches+0x2c/0x44 [<8046ad54>] eventpoll_init+0xac/0xdc [<8046ad2c>] eventpoll_init+0x84/0xdc [<8046b9f0>] init_cramfs_fs+0x10/0x28 [<8045d7c8>] do_initcalls+0x50/0x108 [<8045d7c8>] do_initcalls+0x50/0x108 [<80470e30>] sock_init+0x54/0x6c [<80467a54>] sysctl_init+0x28/0x34 [<8045d8b8>] do_basic_setup+0x38/0x44 [<801006dc>] init+0x3c/0x118 [<80107cd4>] kernel_thread_helper+0x10/0x18 [<80107cc4>] kernel_thread_helper+0x0/0x18 Code: 2463005c ac83001c ac800018 <ac600014> 8c82001c 04a0001c ac40000c 24a Kernel panic - not syncing: Attempted to kill init!
Quoted 7 lines
After fooling with make menuconfig (turned off 64 bit support, PCMCIA, NFS, etc.) I got it to the point where it would load, but then couldn't mount root from hdg1. It cannot seem to find the hard drive at all.
2.4.25 correctly boots and mounts root from the ide drive.
Has anyone gotten the 2.6 kernel from cvs head to boot on a db1550, and successfully mount root from an ide hard drive? If so, how?
I recently replied to a similar email, right before I left for vacation.
The 2.6 kernel right now is missing the 36 bit support, and pcmcia, pci, and lcd chip select won't work. I'll send the patch next week. The rest of the problems you reported have been fixed in patches that are in my queue.
Pete
Christian,
Pull the latest bits from linux-mips and try again. Make sure you apply the patches in my ftp.linux-mips.org directory. Unfortunately there appears to be a bug in the hpt driver because other ide drivers work fine. I need to revisit this later. Also, the pcmcia driver for the db1550 isn't ready but I'll complete that shortly.
Pete
Quoted 234 lines · Christian Hecimovic
I'm having problems building 2.6 head from the linux-mips cvs. There were a number of build errors with the /arch/mips/config/db1550-defconfig file. Eventually, it built with a number of fixes. Here's the diff:
Index:
arch/mips/Kconfig
===================================================================
RCS file:/home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.96
diff -r1.96Kconfig
583a584Quoted 1 line
select
DMA_NONCOHERENTIndex:
arch/mips/Makefile
===================================================================
RCS file:/home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.176
diff -r1.176Makefile
19c19
< 32bit-tool-prefix = mipsel-linux-
---Quoted 1 line
32bit-tool-prefix = mipsel-unknown-linux-gnu-
Index:
arch/mips/mm/ioremap.c
===================================================================
RCS file:/home/cvs/linux/arch/mips/mm/ioremap.c,vretrieving revision 1.19
diff -r1.19ioremap.c
99a100,110Quoted 9 lines
* * Allow physical addresses to be fixed up to help 36 bit
* * peripherals.
* */
staticphys_tdef_fixup_bigphys_addr(phys_t phys_addr, phys_t size){ return phys_addr; }
phys_t(*fixup_bigphys_addr)(phys_tphys_addr,phys_tsize) =
def_fixup_bigphys_addr;Quoted 1 line
/*
121a133,134
Quoted 2 lines
phys_addr = fixup_bigphys_addr(phys_addr, size);Index:
drivers/mtd/maps/db1550-flash.c
===================================================================
RCS file:/home/cvs/linux/drivers/mtd/maps/db1550-flash.c,vretrieving revision 1.1
diff -r1.1db1550-flash.c
22c22
< #include <asm/au1000.h>
---Quoted 1 line
#include <
asm/mach-au1x00/au1000.h>Index:
drivers/pcmcia/Makefile
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/Makefile,vretrieving revision 1.34
diff -r1.34Makefile
46a47Quoted 1 line
au1x00_ss-$(CONFIG_MIPS_DB1550) += au1000_db1x00.o
Index:
drivers/pcmcia/au1000_generic.c
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/au1000_generic.c,v
retrieving revision 1.14
diff -r1.14au1000_generic.c
80c80
< #elifdefined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||defined(CONFIG_MIPS_DB1500)
---Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500)||defined(CONFIG_MIPS_DB1550)152,153d151
<printk(KERN_DEBUG, "%s initializing socket %u\n", __FUNCTION__, skt->nr);
< 315,316d312
< printk(KERN_ERR, "%smap (%d) out of range\n",
<__FUNCTION__,map->map);
339,340d334
<printk(KERN_ERR, "%s map (%d) out of range\n", < __FUNCTION__, map->map);
353c347
<map->sys_start=skt->phys_attr+map->card_start;
---Quoted 1 line
map->static_start = skt->phys_attr + map->card_start;356c350
<map->sys_start=skt->phys_mem+map->card_start;
---Quoted 1 line
map->static_start = skt->phys_mem + map->card_start;359,361c353,354
< map->sys_stop=map->sys_start+MAP_SIZE;
< debug(4, "set_mem_map%d start %Lx stop %Lxcard_start%x\n", <map->map,map->sys_start,map->sys_stop,
---Quoted 2 lines
debug(4, "set_mem_map %d start %Lx card_start %x\n", map->map, map->sys_static,Index:
drivers/pcmcia/au1000_generic.h
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/au1000_generic.h,v
retrieving revision 1.1
diff -r1.1au1000_generic.h
48c48
< #elifdefined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||defined(CONFIG_MIPS_DB1500)
---Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500)||defined(CONFIG_MIPS_DB1550)
Index:include/asm-mips/bootinfo.h
===================================================================
RCS file:/home/cvs/linux/include/asm-mips/bootinfo.h,vretrieving revision 1.75
diff -r1.75bootinfo.h
177a178Quoted 1 line
#define
MACH_DB15509 /* Au1550-based eval board */Index:
include/asm-mips/serial.h
===================================================================
RCS file:/home/cvs/linux/include/asm-mips/serial.h,vretrieving revision 1.59
diff -r1.59serial.h
215c215
< .irq =AU1550_UART3_INT, .flags =STD_COM_FLAGS\
---Quoted 1 line
.irq = AU1550_UART3_INT, .flags = STD_COM_FLAGS, \After building and loading the kernel, it panics:
YAMON> go . idebus=50 root=/dev/hdg1
Linux version 2.6.9-rc2 (ajain@debianFAI) (gcc version 3.3.2) #3 Thu Sep 30 16:4
CPU revision is: 03030200
AMD Alchemy Au1550/Db1550 Board
(PRId 03030200) @ 396MHZ
BCLK switching enabled!
Determined physical RAM map: memory:0c000000@ 00000000 (usable) Built 1 zonelists
Kernel command line: idebus=50 root=/dev/hdg1 console=ttyS0,115200ide_setup: idebus=50
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB 4-way, linesize 32 bytes.
PID hash table entries: 1024 (order: 10, 16384 bytes)
calculating r4koff... 00060ae0(396000)
CPU frequency 396.00 MHz
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 189952k/196608k available (2771k kernel code, 6524k reserved, 668k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Non-coherent PCI accesses enabled
Can't analyze prologue code at803b373c
Linux Kernel Card Services
options: [pci]
Reserved instruction in kernel code in arch/mips/kernel/traps.c::do_ri, line 61:
Cpu 0$ 0 : 00000000 80490000 fffffffa c000305c $ 4 : 8048bad0 0000000f 803ca06c 00000030 $ 8 : 00000000 812c9078 00000001 00000001 $12 : 00000003 ffffffff 0000000a 00000000 $16 : 8048baf0 8048bad0 804766d0 00000000 $20 : 00000000 00000000 00000000 00000000 $24 : 00000010 812bf2c9 $28 : 811fe000 811fff10 00000000 80289ba4 Hi : 08366dd9 Lo : 1db6cb20 epc : 80289adc zlib_inflateInit2_+0x60/0xf0 Not tainted ra : 80289ba4 zlib_inflateInit_+0x18/0x24 Status: 1000fc03 KERNEL EXL IE Cause : 00800028 PrId : 03030200 Process swapper (pid: 1, threadinfo=811fe000, task=811fd8b8) Stack : 8048baf0 00000000 804766d0 00000000 8048baf0 00000000 80289ba4 8016766c 00000000 00000000 00000000 80221f50 80228a88 8046b7cc 8046ad54 8046ad2c 00000000 00000000 804765d4 8046b9f0 00000000 00000000 00000000 00000000 8045d7c8 8045d7c8 80470e30 80467a54 00000000 00000000 803b6c7c 00000000 00000000 8045d8b8 00000000 00000000 00000000 00000000 801006dc 00000000 ... Call Trace: [<80289ba4>] zlib_inflateInit_+0x18/0x24 [<8016766c>] vmalloc+0x14/0x20 [<80221f50>] init_inodecache+0x30/0x50 [<80228a88>] cramfs_uncompress_init+0x84/0x9c [<8046b7cc>] journal_init_caches+0x2c/0x44 [<8046ad54>] eventpoll_init+0xac/0xdc [<8046ad2c>] eventpoll_init+0x84/0xdc [<8046b9f0>] init_cramfs_fs+0x10/0x28 [<8045d7c8>] do_initcalls+0x50/0x108 [<8045d7c8>] do_initcalls+0x50/0x108 [<80470e30>] sock_init+0x54/0x6c [<80467a54>] sysctl_init+0x28/0x34 [<8045d8b8>] do_basic_setup+0x38/0x44 [<801006dc>] init+0x3c/0x118 [<80107cd4>] kernel_thread_helper+0x10/0x18 [<80107cc4>] kernel_thread_helper+0x0/0x18 Code: 2463005c ac83001c ac800018 <ac600014> 8c82001c 04a0001c ac40000c 24a Kernel panic - not syncing: Attempted to kill init!After fooling with make menuconfig (turned off 64 bit support, PCMCIA, NFS, etc.) I got it to the point where it would load, but then couldn't mount root from hdg1. It cannot seem to find the hard drive at all.
2.4.25 correctly boots and mounts root from the ide drive.
Has anyone gotten the 2.6 kernel from cvs head to boot on a db1550, and successfully mount root from an ide hard drive? If so, how?
Thanks in advance,
Christian
Hi Pete,
Thanks for the advice. Indeed, with the help of your patches, we are up and running.
As for your hpt driver problems, perhaps this patch will help you. It works for us, anyway ;)
Index: drivers/ide/pci/hpt366.c
===================================================================
RCS file: /home/cvs/linux/drivers/ide/pci/hpt366.c,v retrieving revision 1.26
ide/pci/hpt366.c 14 Oct 2004 10:14:37 -0000 renamed from ide/pci/hpt366.c 19 Sep 2004 12:30:10 -0000 1.26 +1 -1
@@ -880,7 +880,7 @@ static int __devinit init_hpt37x(struct did = inb(dmabase + 0x22); rid = inb(dmabase + 0x28); - if((did == 4 && rid == 6) || (did == 5 && rid > 1)) + if((did == 4 && rid == 6) || (did == 5 && rid > 1) || (did ==
7 && rid == 2))
is_372n = 1;
}Thanks,
Christian
Quoted 250 lines · Pete Popov
Christian,
Pull the latest bits from linux-mips and try again. Make sure you apply the patches in my ftp.linux-mips.org directory. Unfortunately there appears to be a bug in the hpt driver because other ide drivers work fine. I need to revisit this later. Also, the pcmcia driver for the db1550 isn't ready but I'll complete that shortly.
Pete
Quoted 239 lines · Christian Hecimovic
I'm having problems building 2.6 head from the linux-mips cvs. There were a number of build errors with the /arch/mips/config/db1550-defconfig file. Eventually, it built with a number of fixes. Here's the diff:
Index:
arch/mips/Kconfig
===================================================================
RCS file:/home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.96
diff -r1.96Kconfig
583a584Quoted 1 line
select
DMA_NONCOHERENTIndex:
arch/mips/Makefile
===================================================================
RCS file:/home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.176
diff -r1.176Makefile
19c19
< 32bit-tool-prefix = mipsel-linux-
---Quoted 1 line
32bit-tool-prefix = mipsel-unknown-linux-gnu-
Index:
arch/mips/mm/ioremap.c
===================================================================
RCS file:/home/cvs/linux/arch/mips/mm/ioremap.c,vretrieving revision 1.19
diff -r1.19ioremap.c
99a100,110Quoted 9 lines
* * Allow physical addresses to be fixed up to help 36 bit
* * peripherals.
* */
staticphys_tdef_fixup_bigphys_addr(phys_t phys_addr, phys_t size){ return phys_addr; }
phys_t(*fixup_bigphys_addr)(phys_tphys_addr,phys_tsize) =
def_fixup_bigphys_addr;Quoted 1 line
/*
121a133,134
Quoted 1 line
phys_addr = fixup_bigphys_addr(phys_addr, size);Index:
drivers/mtd/maps/db1550-flash.c
===================================================================
RCS file:/home/cvs/linux/drivers/mtd/maps/db1550-flash.c,vretrieving revision 1.1
diff -r1.1db1550-flash.c
22c22
< #include <asm/au1000.h>
---Quoted 1 line
#include <
asm/mach-au1x00/au1000.h>Index:
drivers/pcmcia/Makefile
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/Makefile,vretrieving revision 1.34
diff -r1.34Makefile
46a47Quoted 1 line
au1x00_ss-$(CONFIG_MIPS_DB1550) += au1000_db1x00.o
Index:
drivers/pcmcia/au1000_generic.c
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/au1000_generic.c,vretrieving revision 1.14
diff -r1.14au1000_generic.c
80c80
< #elifdefined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||defined(CONFIG_MIPS_DB1500)
---Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500)||defined(CONFIG_MIPS_DB1550)152,153d151
< printk(KERN_DEBUG, "%s initializing socket %u\n",__FUNCTION__,skt->nr); <
315,316d312
< printk(KERN_ERR, "%smap (%d) out of range\n",
<__FUNCTION__,map->map);
339,340d334
< printk(KERN_ERR, "%s map (%d) out of range\n",
<__FUNCTION__,map->map);
353c347
<map->sys_start=skt->phys_attr+map->card_start;
---Quoted 1 line
map->static_start = skt->phys_attr + map->card_start;356c350
<map->sys_start=skt->phys_mem+map->card_start;
---Quoted 1 line
map->static_start = skt->phys_mem + map->card_start;359,361c353,354
< map->sys_stop=map->sys_start+MAP_SIZE;
< debug(4, "set_mem_map%d start %Lx stop %Lxcard_start%x\n",
<map->map,map->sys_start,map->sys_stop,
---Quoted 2 lines
debug(4, "set_mem_map %d start %Lx card_start %x\n", map->map, map->sys_static,Index:
drivers/pcmcia/au1000_generic.h
===================================================================
RCS file:/home/cvs/linux/drivers/pcmcia/au1000_generic.h,vretrieving revision 1.1
diff -r1.1au1000_generic.h
48c48
< #elifdefined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||defined(CONFIG_MIPS_DB1500)
---Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||defined(CONFIG_MIPS_DB1100)||
defined(CONFIG_MIPS_DB1500)||defined(CONFIG_MIPS_DB1550)
Index:include/asm-mips/bootinfo.h
===================================================================
RCS file:/home/cvs/linux/include/asm-mips/bootinfo.h,vretrieving revision 1.75
diff -r1.75bootinfo.h
177a178Quoted 1 line
#define
MACH_DB15509 /* Au1550-based eval board */Index:
include/asm-mips/serial.h
===================================================================
RCS file:/home/cvs/linux/include/asm-mips/serial.h,vretrieving revision 1.59
diff -r1.59serial.h
215c215
< .irq =AU1550_UART3_INT, .flags =STD_COM_FLAGS\
---Quoted 1 line
.irq = AU1550_UART3_INT, .flags = STD_COM_FLAGS, \After building and loading the kernel, it panics:
YAMON> go . idebus=50 root=/dev/hdg1
Linux version 2.6.9-rc2 (ajain@debianFAI) (gcc version 3.3.2) #3 Thu Sep 30 16:4
CPU revision is: 03030200
AMD Alchemy Au1550/Db1550 Board
(PRId 03030200) @ 396MHZ
BCLK switching enabled!
Determined physical RAM map: memory:0c000000@ 00000000 (usable) Built 1 zonelists
Kernel command line: idebus=50 root=/dev/hdg1 console=ttyS0,115200ide_setup: idebus=50
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB 4-way, linesize 32 bytes.
PID hash table entries: 1024 (order: 10, 16384 bytes) calculating r4koff... 00060ae0(396000)
CPU frequency 396.00 MHz
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 189952k/196608k available (2771k kernel code, 6524k reserved, 668k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Non-coherent PCI accesses enabled
Can't analyze prologue code at803b373c
Linux Kernel Card Services
options: [pci]
Reserved instruction in kernel code in arch/mips/kernel/traps.c::do_ri, line 61:
Cpu 0$ 0 : 00000000 80490000 fffffffa c000305c $ 4 : 8048bad0 0000000f 803ca06c 00000030 $ 8 : 00000000 812c9078 00000001 00000001 $12 : 00000003 ffffffff 0000000a 00000000 $16 : 8048baf0 8048bad0 804766d0 00000000 $20 : 00000000 00000000 00000000 00000000 $24 : 00000010 812bf2c9 $28 : 811fe000 811fff10 00000000 80289ba4 Hi : 08366dd9 Lo : 1db6cb20 epc : 80289adc zlib_inflateInit2_+0x60/0xf0 Not tainted ra : 80289ba4 zlib_inflateInit_+0x18/0x24 Status: 1000fc03 KERNEL EXL IE Cause : 00800028 PrId : 03030200 Process swapper (pid: 1, threadinfo=811fe000, task=811fd8b8) Stack : 8048baf0 00000000 804766d0 00000000 8048baf0 00000000 80289ba4 8016766c 00000000 00000000 00000000 80221f50 80228a88 8046b7cc 8046ad54 8046ad2c 00000000 00000000 804765d4 8046b9f0 00000000 00000000 00000000 00000000 8045d7c8 8045d7c8 80470e30 80467a54 00000000 00000000 803b6c7c 00000000 00000000 8045d8b8 00000000 00000000 00000000 00000000 801006dc 00000000 ... Call Trace: [<80289ba4>] zlib_inflateInit_+0x18/0x24 [<8016766c>] vmalloc+0x14/0x20 [<80221f50>] init_inodecache+0x30/0x50 [<80228a88>] cramfs_uncompress_init+0x84/0x9c [<8046b7cc>] journal_init_caches+0x2c/0x44 [<8046ad54>] eventpoll_init+0xac/0xdc [<8046ad2c>] eventpoll_init+0x84/0xdc [<8046b9f0>] init_cramfs_fs+0x10/0x28 [<8045d7c8>] do_initcalls+0x50/0x108 [<8045d7c8>] do_initcalls+0x50/0x108 [<80470e30>] sock_init+0x54/0x6c [<80467a54>] sysctl_init+0x28/0x34 [<8045d8b8>] do_basic_setup+0x38/0x44 [<801006dc>] init+0x3c/0x118 [<80107cd4>] kernel_thread_helper+0x10/0x18 [<80107cc4>] kernel_thread_helper+0x0/0x18 Code: 2463005c ac83001c ac800018 <ac600014> 8c82001c 04a0001c ac40000c 24a Kernel panic - not syncing: Attempted to kill init!After fooling with make menuconfig (turned off 64 bit support, PCMCIA, NFS, etc.) I got it to the point where it would load, but then couldn't mount root from hdg1. It cannot seem to find the hard drive at all.
2.4.25 correctly boots and mounts root from the ide drive.
Has anyone gotten the 2.6 kernel from cvs head to boot on a db1550, and successfully mount root from an ide hard drive? If so, how?
Thanks in advance,
Christian
Quoted 4 lines · --- Christian Hecimovic
Hi Pete,
Thanks for the advice. Indeed, with the help of your patches, we are up and running.
Good to hear. BTW, I'm pushing the patches but I'm not the only developer that's contributing to those patches.
Quoted 2 lines
As for your hpt driver problems, perhaps this patch will help you. It works for us, anyway ;)
:) That's the 2.4 patch I have in my linux-mips directory. For some reason it doesn't work for me in 2.6. Unfortunately it appears to be a timing issue of some sort because when I put some debug prints, the problem goes away. I'll debug it later ...
Pete
Quoted 3 lines
Index:
drivers/ide/pci/hpt366.c
===================================================================
Quoted 41 lines
RCS file:
/home/cvs/linux/drivers/ide/pci/hpt366.c,vretrieving revision 1.26
diff -u -p -r1.26hpt366.c
---drivers/ide/pci/hpt366.c19 Sep 2004 12:30:10
-0000 1.26
+++drivers/ide/pci/hpt366.c14 Oct 2004 10:14:37
-0000(quoted diff) +0
-0@@ -880,7 +880,7 @@ static int __devinitinit_hpt37x(struct
did = inb(dmabase + 0x22); rid = inb(dmabase + 0x28);- if((did == 4 && rid == 6) || (did ==
5 && rid > 1))
+ if((did == 4 && rid == 6) || (did ==
5 && rid > 1) || (did ==
7 && rid == 2))is_372n = 1; }Thanks,
Christian
Quoted 3 lines · Pete Popov
Christian,
Pull the latest bits from linux-mips and try
again. Make sure you apply
Quoted 1 line
the patches in my ftp.linux-mips.org directory.
Unfortunately there
Quoted 1 line
appears to be a bug in the hpt driver because
other ide drivers work
Quoted 1 line
fine. I need to revisit this later. Also, the
pcmcia driver for the
Quoted 4 lines
db1550 isn't ready but I'll complete that shortly.
Pete
Quoted 11 lines
Quoted 2 lines
Quoted 1 line · Christian Hecimovic
I'm having problems building 2.6 head from the
linux-mips cvs. There were
Quoted 1 line
Quoted 1 line
a number of build errors with the
/arch/mips/config/db1550-defconfig
Quoted 1 line
Quoted 1 line
file. Eventually, it built with a number of
fixes. Here's the diff:
Quoted 3 lines
Quoted 3 lines
Index:
arch/mips/Kconfig
===================================================================
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
RCS file:
/home/cvs/linux/arch/mips/Kconfig,v
retrieving revision 1.96
diff -r1.96Kconfig
583a584Quoted 1 line
select
DMA_NONCOHERENTIndex:
arch/mips/Makefile
===================================================================
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
RCS file:
/home/cvs/linux/arch/mips/Makefile,v
retrieving revision 1.176
diff -r1.176Makefile
19c19
< 32bit-tool-prefix = mipsel-linux-
---
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
32bit-tool-prefix = mipsel-unknown-linux-gnu-
Index:
arch/mips/mm/ioremap.c
===================================================================
Quoted 19 lines
Quoted 1 line
Quoted 1 line
RCS file:
/home/cvs/linux/arch/mips/mm/ioremap.c,vQuoted 5 lines
Quoted 5 lines
retrieving revision 1.19
diff -r1.19ioremap.c
99a100,110Quoted 1 line
* * Allow physical addresses to be fixed up to
help 36 bit
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
* * peripherals.
* */
staticphys_tdef_fixup_bigphys_addr(phys_t
phys_addr,phys_tsize)Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
{ return phys_addr; }
phys_t(*fixup_bigphys_addr)(phys_tphys_addr,
phys_tsize) =Quoted 1 line
Quoted 1 line
Quoted 12 lines
Quoted 7 lines
Quoted 7 lines
def_fixup_bigphys_addr;Quoted 1 line
/*
121a133,134
Quoted 1 line
phys_addr= fixup_bigphys_addr(phys_addr,size);
Quoted 3 lines
Quoted 3 lines
Index:
drivers/mtd/maps/db1550-flash.c
===================================================================
Quoted 13 lines
Quoted 1 line
Quoted 1 line
RCS file:
/home/cvs/linux/drivers/mtd/maps/db1550-flash.c,vQuoted 10 lines
Quoted 10 lines
retrieving revision 1.1
diff -r1.1db1550-flash.c
22c22
< #include <asm/au1000.h>
---Quoted 1 line
#include <
asm/mach-au1x00/au1000.h>Index:
drivers/pcmcia/Makefile
===================================================================
Quoted 12 lines
Quoted 1 line
Quoted 1 line
RCS file:
/home/cvs/linux/drivers/pcmcia/Makefile,vQuoted 5 lines
Quoted 5 lines
retrieving revision 1.34
diff -r1.34Makefile
46a47Quoted 1 line
au1x00_ss-$(CONFIG_MIPS_DB1550) +=
au1000_db1x00.o
Quoted 3 lines
Quoted 3 lines
Index:
drivers/pcmcia/au1000_generic.c
===================================================================
Quoted 46 lines
Quoted 1 line
Quoted 1 line
RCS file:
/home/cvs/linux/drivers/pcmcia/au1000_generic.c,vQuoted 4 lines
Quoted 4 lines
retrieving revision 1.14
diff -r1.14au1000_generic.c
80c80
< #elifdefined(CONFIG_MIPS_DB1000)||
defined(CONFIG_MIPS_DB1100)||Quoted 4 lines
Quoted 4 lines
defined(CONFIG_MIPS_DB1500)
---Quoted 1 line
#elif
defined(CONFIG_MIPS_DB1000)||
defined(CONFIG_MIPS_DB1100)||Quoted 2 lines
Quoted 2 lines
defined(CONFIG_MIPS_DB1500)||
defined(CONFIG_MIPS_DB1550)Quoted 2 lines
Quoted 2 lines
152,153d151
< printk(KERN_DEBUG, "%s initializing socket%u\n",
__FUNCTION__,Quoted 3 lines
Quoted 3 lines
skt->nr); <
315,316d312
< printk(KERN_ERR, "%smap (%d) out ofrange\n",
Quoted 3 lines
Quoted 3 lines
<
__FUNCTION__,map->map);
339,340d334
< printk(KERN_ERR, "%s map (%d) out ofrange\n",
Quoted 3 lines
Quoted 3 lines
<
__FUNCTION__,map->map);
353c347
<map->sys_start=skt->phys_attr+
map->card_start;Quoted 3 lines
Quoted 3 lines
---
Quoted 1 line
map->static_start = skt->phys_attr +
map->card_start;Quoted 3 lines
Quoted 3 lines
356c350
<map->sys_start=skt->phys_mem+
map->card_start;Quoted 3 lines
Quoted 3 lines
---
Quoted 1 line
map->static_start = skt->phys_mem +
map->card_start;Quoted 4 lines
Quoted 4 lines
359,361c353,354
< map->sys_stop=map->sys_start+MAP_SIZE;
< debug(4, "set_mem_map%d start %Lx stop %Lx
Quoted 11 lines
card_start%x\n",Quoted 4 lines
Quoted 4 lines
<
map->map,map->sys_start,map->sys_stop,
---Quoted 1 line
debug(4, "
set_mem_map%d start %Lxcard_start%x\n",
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
map->map, map->sys_static,Index:
drivers/pcmcia/au1000_generic.h
===================================================================
Quoted 3 lines
Quoted 1 line
Quoted 1 line
RCS file:
/home/cvs/linux/drivers/pcmcia/au1000_generic.h,v
=== message truncated ===