[vmips] Hello. Can you please explain me how to boot the linux kernel?

Brian R.Gaeke brg at dgate.ORG
Mon Mar 28 23:28:03 CST 2005


You might have better luck with a slightly older kernel, such as 2.4.25  
from the linux-mips
cvs. Later versions include a revision to the serial driver that does  
not work well with the
emulated serial chip in vmips (it messes with the interrupts before  
outputting *each* byte!)

-Brian

On Mar 27, 2005, at 11:19 PM, florin wrote:

> Thanks for your fast reply :) . I must agree with you - sometimes it  
> works, sometimes it does not... I could finally boot it up (after a  
> bit of black magic) but always crashes with this message :
>
> [root at l5ac245 xmboot]# ./vmipsdec
> Little-Endian host processor detected.
> Mapping ROM image (bootvmlinux.ecoff.rom, 266240 words) to physical  
> address 0x1fb02000
> Mapping RAM module (host=0xf4ed9008, 32768KB) to physical address 0x0
> Mapping DECstation 5000/200 RTC to physical address 0x1fe80000
> Connected IRQ3 to the DECstation 5000/200 RTC
> Mapping DECstation 5000/200 CSR to physical address 0x1ff00000
> Connected IRQ2 to the DECstation 5000/200 CSR
> Mapping DECstation 5000/200 CHKSYN & ERRADR to physical address  
> 0x1fd00000
> DZ11 Master clear!
> Mapping DECstation 5000/200 DZ11 Serial to physical address 0x1fe00000
> Connected fd 5 to DECstation 5000/200 DZ11 Serial line 3.
>
> *************RESET*************
>
> DZ11 write CSR as 10
> DZ11 Master clear!
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 0
> DZ11 write CSR as 20
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 0
> DZ11 write CSR as 320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
>
>
> Vmips boot monitor
> Autobooting preloaded ROM file at bfb02000
> Moving 1032192 bytes of text from bfb02140-bfbfe140 to  
> 80040000-8013c000...ok.     <<<<<--------It takes around 3-5 minutes  
> to actually complete this operation. Is this normal or is just on my  
> case?? --- Florin---
> Moving 0 bytes of data from bfbfe140-bfbfe140 to  
> 8013c000-8013c000...ok.
> Zeroing out bss (157744 bytes at 8013c000)...ok.
> When you walk through the storm
> hold your head up high
> And don't ... be afraid ... of the dark!
> load byte from physical address 0x2000000 caused bus error
> This is a DECstation 5000/200
> CPU revision is: 00000230
> Primary instruction cache 0kB, linesize 0 bytes.
> Primary data cache 0kB, linesize 0 bytes.
> Linux version 2.4.28-mipscvs-20041126 (root at l5ac245.l5.laser5.co.jp)  
> (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1)) #1 Mon Mar  
> 28 15:29:25 JST 2005
> Determined physical RAM map:
> memory: 02000000 @ 00000000 (usable)
> Initial ramdisk at: 0x8013c000 (0 bytes)
> On node 0 totalpages: 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/ram0 rw load_ramdisk=1  
> console=ttyS3,9600n8
> ERRADR reg cleared
> Interrupt cancelled
> RTC RTC_REGA (10) written with 0x29
> RTC rate_selector set to 0x9 (7812500)
> RTC RTC_REGB (11) written with 0x40
> RTC interrupt_enable set to 1
> RTC turning interrupts on
> DZ11 write CSR as 10
> DZ11 Master clear!
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 0
> DZ11 write CSR as 20
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 0
> DZ11 write LPR as e9b
> DZ11 write CSR as 20
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 0
> TDZ11 write CSR as 20
> rd IE is now off, Display IE now off, selected tx line now 0
> DZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> hDZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> DZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> iDZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> DZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> sDZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> DZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> DZ11 write CSR as 8320
> DZ11 Keyboard IE is now off, Display IE now off, selected tx line now 3
> :
> :
> and so on and so on...
>
> Any sugestions?
> Regards
> Florin.
> PS - I am compiling it with debug symbols on, so I can hook it to the  
> insight or gdb or something similar...
>
> Brian R.Gaeke wrote:
>
>>
>> Hi,
>>
>> Booting the linux kernel is a bit of a black art... sometimes it  
>> works,
>> sometimes it does not.  You can see the vmipsdec script here:
>>
>>      
>> http://www.dgate.org/cgi-bin/cvsweb.cgi/vm/sample_code/xmboot/ 
>> vmipsdec
>>
>> Since the linux support is based on the DECstation 5000/200 linux
>> support, it requires (at minimum) that you turn on the decserial  
>> device and turn
>> off the spimconsole device. I'm unfortunately too busy to build a  
>> linux image
>> right now, but I might be able to do it in a couple of weeks.
>>
>> Note that you might have better results by running catrom with the -b
>> option (catrom -b boot.rom vmlinux.ecoff bootvmlinuxecoff.rom)
>> and then when it tells you the load address, use that as the argument
>> to "vmips -o loadaddr".   If you use catrom -a, it will try to put  
>> the kernel
>> above ROM, and there might not be enough space for it up there.
>>
>> Hope this helps.
>> -Brian
>>
>> On Mar 27, 2005, at 7:55 PM, florin wrote:
>>
>>> First, let me say that I find your project quite usefull. I am  
>>> trying to make it boot a linux kernel, so I can understand the  
>>> processes involved.
>>> I created a vmlinux.ecoff using the .config file patched in a  
>>> previous post.. I tried to stick boot.rom to vmlinux.ecoff using  
>>> ./catrom boot.rom vmlinux.ecoff linuxboot.rom
>>> By running the vmips linuxboot.rom, the emulator stops after the  
>>> reset message. In the last release there is no vmipsdec script, so I  
>>> am not sure what options did you used while booting..
>>> Could you please post a running rom image, and instructions about  
>>> how to build it?
>>> Thanks and keep up the good work..
>>> Florin
>>> _______________________________________________
>>> Vmips mailing list
>>> Vmips at dgate.ORG
>>> http://www.dgate.ORG/mailman/listinfo/vmips
>>
>>



More information about the Vmips mailing list