Skip to contentSkip to conversation

porting linux to DBau1200

DISCUSSION saravanan sar 3 participants 5 messages Jun 2, 2007 – Jun 7, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

hi,

has anyone successfully ported linux to DBau1200 board ? here i have problem in mounting root filesystem. i compiled the linux kernel and got the vmlinuz image and ported to the board also. but when i boots up it shows the following error:
YAMON> go
Linux version 2.6.11-r000069-smp (root@suse) (gcc version 3.4.4) #8 Wed May 30 19:22:16 IST 2007
CPU revision is: 04030201
AMD Alchemy Db1200 Board
(PRId 04030201) @ 396MHZ
Determined physical RAM map:
memory: 10000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: video=au1200fb:panel:bs console=ttyS0,115200
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (34 instructions).
Synthesized TLB store handler fastpath (34 instructions).
Synthesized TLB modify handler fastpath (33 instructions).
PID hash table entries: 2048 (order: 11, 32768 bytes)
calculating r4koff... 00060ae0(396000)
Using 396.000 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255872k/262144k available (1894k kernel code, 6124k reserved, 337k data, 116k init, 0k highmem)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Au1XXX Real Time Clock Driver v1.0
audit: initializing netlink socket (disabled)
audit(120525897.203:0): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
au1200fb: LCD controller driver for AU1200 processors<6>
au1200fb: Panel 2 SVGA_800x600
au1200fb: Win 2 0-FS gfx, 1-video, 2-ovly gfx, 3-ovly gfx
Panel(SVGA_800x600), 800x600
Console: switching to colour frame buffer device 100x75
rtc: I/O resource 70 is not free.
Serial: Au1x00 driver
ttyS0 at I/O 0xb1100000 (irq = 0) is a AU1X00_UART
ttyS1 at I/O 0xb1200000 (irq = 8) is a AU1X00_UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
netconsole: not configured, aborting
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
NET: Registered protocol family 1

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0).

. i searched in the google regarding this and found that this corresponds to root filesystem not found.

can anyone provide me any suggestions or solutions for creating root filesystem and linking that with the kernel ?

thanks in advance,

saravanan.

---------------------------------
Did you know? You can CHAT without downloading messenger. Know how!

#1 lore raw

Re: {Spam} porting linux to DBau1200

Hello,

In the bootlog you pasted, I see no flash map being enabled for your device.

You might want to have a look at the AMD alchemy flash driver which should provide you a basic mapping.

This driver is located in linux/drivers/mtd/maps/alchemy-flash.c and can be enabled within Kconfig in the Device Driver / Memory Technology Device / Mapping drivers for chip access.

Le samedi 2 juin 2007, saravanan sar a écrit :

Quoted 74 lines

hi,

has anyone successfully ported linux to DBau1200 board ? here i have problem in mounting root filesystem. i compiled the linux kernel and got the vmlinuz image and ported to the board also. but when i boots up it shows the following error: YAMON> go
Linux version 2.6.11-r000069-smp (root@suse) (gcc version 3.4.4) #8 Wed May 30 19:22:16 IST 2007 CPU revision is: 04030201
AMD Alchemy Db1200 Board
(PRId 04030201) @ 396MHZ
Determined physical RAM map:
memory: 10000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: video=au1200fb:panel:bs console=ttyS0,115200 Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB, 4-way, linesize 32 bytes. Synthesized TLB refill handler (17 instructions).
Synthesized TLB load handler fastpath (34 instructions). Synthesized TLB store handler fastpath (34 instructions). Synthesized TLB modify handler fastpath (33 instructions).
PID hash table entries: 2048 (order: 11, 32768 bytes) calculating r4koff... 00060ae0(396000)
Using 396.000 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255872k/262144k available (1894k kernel code, 6124k reserved, 337k data, 116k init, 0k highmem) Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for 'wait' instruction... unavailable.
NET: Registered protocol family 16
Au1XXX Real Time Clock Driver v1.0
audit: initializing netlink socket (disabled) audit(120525897.203:0): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API
au1200fb: LCD controller driver for AU1200 processors<6>
au1200fb: Panel 2 SVGA_800x600
au1200fb: Win 2 0-FS gfx, 1-video, 2-ovly gfx, 3-ovly gfx Panel(SVGA_800x600), 800x600
Console: switching to colour frame buffer device 100x75
rtc: I/O resource 70 is not free.
Serial: Au1x00 driver
ttyS0 at I/O 0xb1100000 (irq = 0) is a AU1X00_UART
ttyS1 at I/O 0xb1200000 (irq = 8) is a AU1X00_UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
netconsole: not configured, aborting
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP established hash table entries: 16384 (order: 5, 131072 bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
NET: Registered protocol family 1

Kernel panic - not syncing: VFS: Unable to mount root fs on

unknown-block(1,0).

. i searched in the google regarding this and found that this corresponds to root filesystem not found.

can anyone provide me any suggestions or solutions for creating root filesystem and linking that with the kernel ?

thanks in advance,

saravanan.

---------------------------------
Did you know? You can CHAT without downloading messenger. Know how!

Signature · 2 lines
Cordialement, Florian Fainelli
---------------------------------------------
#2 lore raw
In reply to saravanan sar

Hi Sar,

Quoted 1 line · saravanan sar

has anyone successfully ported linux to DBau1200 board?

I am successfully running it on the DBAu1100 board, so I am most sure it works on the 1200 board too. No worries on that part.

Quoted 1 line

YAMON> go

[cut]

Quoted 1 line
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0).

You might want to try an NFS mount first, before loading a root filesystem on the Flash memory that's part of the board.

Setup a root filesystem on a workstation and export it by means of NFS. You might want to take a look at debootstrap (Debian GNU/Linux), but there do exist an almost infite amount of other ways to do just that. Probably an obvious note, but I like to make it anyway: make sure you use mipsel binaries!!

Next you start from YAMON in a way like this:

	go . ip=10.42.69.2 nfsroot=10.42.69.1:/opt/debianfs/ rw

Of course you can use any IP address you like and the '/opt/debianfs/' is only a suggestion to where the just created root filesystem resides on your workstation.

Good luck!

Signature · 4 lines
$ cat ~/.signature
Freddy Spierenburg <[email protected]>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
author
#3 lore raw

Hi,

can you say me to create a simple rootfilesystem for MIPS? i searched in the net but i could not find anything. i tried cross compiling busybox for our MIPS but that too was not successfull.

can you please help me ?

saravanan.

---------------------------------
Looking for people who are YOUR TYPE? Find them here!

#4 lore raw

Hi Saravanan,

Quoted 1 line · saravanan

can you say me to create a simple rootfilesystem for MIPS?

Like I say'd in my previous email, have a look at debootstrap:

http://packages.debian.org/stable/admin/debootstrap

It's a very easy and fast way to create a simple filesystem.

Good luck!

Signature · 4 lines
$ cat ~/.signature
Freddy Spierenburg <[email protected]>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!