* BootLoader on MIPS
@ 2002-03-22 8:16 Y.H. Ku
2002-03-22 8:16 ` Y.H. Ku
0 siblings, 1 reply; 12+ messages in thread
From: Y.H. Ku @ 2002-03-22 8:16 UTC (permalink / raw)
To: linux-mips
Hello there,
I am trying to porting Prom monitor code to
appropriate MIPS bootloader for loading Linux kernel
I ever make a test sucessfully with ppcboot's to load MBXloader
for transfering control to linux kernel (hardhat).
But I can not find the entry, and make decision what kind of BOOT LOADER
to use on MIPS platform.
I have the ddb5476 board type linux from montavista,
Could anybody give me some suggestion?
--Sam
^ permalink raw reply [flat|nested] 12+ messages in thread
* BootLoader on MIPS
2002-03-22 8:16 Y.H. Ku
@ 2002-03-22 8:16 ` Y.H. Ku
0 siblings, 0 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-22 8:16 UTC (permalink / raw)
To: linux-mips
Hello there,
I am trying to porting Prom monitor code to
appropriate MIPS bootloader for loading Linux kernel
I ever make a test sucessfully with ppcboot's to load MBXloader
for transfering control to linux kernel (hardhat).
But I can not find the entry, and make decision what kind of BOOT LOADER
to use on MIPS platform.
I have the ddb5476 board type linux from montavista,
Could anybody give me some suggestion?
--Sam
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
@ 2002-03-22 13:20 Marc Karasek
2002-03-23 8:42 ` Y.H. Ku
0 siblings, 1 reply; 12+ messages in thread
From: Marc Karasek @ 2002-03-22 13:20 UTC (permalink / raw)
To: 'Y.H. Ku', linux-mips
[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]
YAMON is prob the default right now. It has support for loading a kernel
over tftp.
I do not think it is OS though. I maybe wrong, I will have to check the
source I have to see if it is or not. I am currently adding BOOTP support
to it, along with some other options. If it is OS, then I will be providing
these back to the community.
/*******************************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
Ph: 678-990-1550 x238
Fax: 678-990-1551
email: marc_karasek@ivivity.com
/*******************************************
-----Original Message-----
From: Y.H. Ku [mailto:iskoo@ms45.hinet.net]
Sent: Friday, March 22, 2002 3:16 AM
To: linux-mips@oss.sgi.com
Subject: BootLoader on MIPS
Hello there,
I am trying to porting Prom monitor code to
appropriate MIPS bootloader for loading Linux kernel
I ever make a test sucessfully with ppcboot's to load MBXloader
for transfering control to linux kernel (hardhat).
But I can not find the entry, and make decision what kind of BOOT LOADER
to use on MIPS platform.
I have the ddb5476 board type linux from montavista,
Could anybody give me some suggestion?
--Sam
[-- Attachment #2: Marc Karasek.vcf --]
[-- Type: application/octet-stream, Size: 260 bytes --]
BEGIN:VCARD
VERSION:2.1
N:Karasek;Marc
FN:Marc Karasek
ORG:Ivivity
TITLE:Senior Software Engineer
NOTE:Senior Software Engineer
TEL;WORK;VOICE:210
ADR;WORK:;Atlanta
LABEL;WORK:Atlanta
EMAIL;PREF;INTERNET:marc_karasek@ivivity.com
REV:20011130T233616Z
END:VCARD
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-22 13:20 BootLoader on MIPS Marc Karasek
@ 2002-03-23 8:42 ` Y.H. Ku
2002-03-23 8:42 ` Y.H. Ku
2002-03-25 23:11 ` Jun Sun
0 siblings, 2 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-23 8:42 UTC (permalink / raw)
To: Marc Karasek, linux-mips
Hi everybody,
I trace PMON into mips.S, and find the entry "_go".
the entry transfer control to client prog.
I am confused of what information PMON transfer to MIPS's BOOTLOADER
and transfer to which entry point of BOOTLOADER.
I found the bd_t struct of PPCBOOT.h for PPCBOOT package on POWERPC platform.
It is corresponding POWERPC-LINUX data structure bd_info in ~/include/asm/mbx.h
(register r3~r7)
I just can not find the entry for MIPS's one. (can not find corresponding baget.h's one)
Could anybody tell me what is the information (register inforation) PMON transfer
to bootloader?
Or anybody can disscuss with me,
best regards,
--sam
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Marc Karasek
Sent: Friday, March 22, 2002 9:21 PM
To: 'Y.H. Ku'; linux-mips@oss.sgi.com
Subject: RE: BootLoader on MIPS
YAMON is prob the default right now. It has support for loading a kernel
over tftp.
I do not think it is OS though. I maybe wrong, I will have to check the
source I have to see if it is or not. I am currently adding BOOTP support
to it, along with some other options. If it is OS, then I will be providing
these back to the community.
/*******************************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
Ph: 678-990-1550 x238
Fax: 678-990-1551
email: marc_karasek@ivivity.com
/*******************************************
-----Original Message-----
From: Y.H. Ku [mailto:iskoo@ms45.hinet.net]
Sent: Friday, March 22, 2002 3:16 AM
To: linux-mips@oss.sgi.com
Subject: BootLoader on MIPS
Hello there,
I am trying to porting Prom monitor code to
appropriate MIPS bootloader for loading Linux kernel
I ever make a test sucessfully with ppcboot's to load MBXloader
for transfering control to linux kernel (hardhat).
But I can not find the entry, and make decision what kind of BOOT LOADER
to use on MIPS platform.
I have the ddb5476 board type linux from montavista,
Could anybody give me some suggestion?
--Sam
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-23 8:42 ` Y.H. Ku
@ 2002-03-23 8:42 ` Y.H. Ku
2002-03-25 23:11 ` Jun Sun
1 sibling, 0 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-23 8:42 UTC (permalink / raw)
To: Marc Karasek, linux-mips
Hi everybody,
I trace PMON into mips.S, and find the entry "_go".
the entry transfer control to client prog.
I am confused of what information PMON transfer to MIPS's BOOTLOADER
and transfer to which entry point of BOOTLOADER.
I found the bd_t struct of PPCBOOT.h for PPCBOOT package on POWERPC platform.
It is corresponding POWERPC-LINUX data structure bd_info in ~/include/asm/mbx.h
(register r3~r7)
I just can not find the entry for MIPS's one. (can not find corresponding baget.h's one)
Could anybody tell me what is the information (register inforation) PMON transfer
to bootloader?
Or anybody can disscuss with me,
best regards,
--sam
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Marc Karasek
Sent: Friday, March 22, 2002 9:21 PM
To: 'Y.H. Ku'; linux-mips@oss.sgi.com
Subject: RE: BootLoader on MIPS
YAMON is prob the default right now. It has support for loading a kernel
over tftp.
I do not think it is OS though. I maybe wrong, I will have to check the
source I have to see if it is or not. I am currently adding BOOTP support
to it, along with some other options. If it is OS, then I will be providing
these back to the community.
/*******************************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
Ph: 678-990-1550 x238
Fax: 678-990-1551
email: marc_karasek@ivivity.com
/*******************************************
-----Original Message-----
From: Y.H. Ku [mailto:iskoo@ms45.hinet.net]
Sent: Friday, March 22, 2002 3:16 AM
To: linux-mips@oss.sgi.com
Subject: BootLoader on MIPS
Hello there,
I am trying to porting Prom monitor code to
appropriate MIPS bootloader for loading Linux kernel
I ever make a test sucessfully with ppcboot's to load MBXloader
for transfering control to linux kernel (hardhat).
But I can not find the entry, and make decision what kind of BOOT LOADER
to use on MIPS platform.
I have the ddb5476 board type linux from montavista,
Could anybody give me some suggestion?
--Sam
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BootLoader on MIPS
2002-03-23 8:42 ` Y.H. Ku
2002-03-23 8:42 ` Y.H. Ku
@ 2002-03-25 23:11 ` Jun Sun
2002-03-26 10:09 ` Y.H. Ku
1 sibling, 1 reply; 12+ messages in thread
From: Jun Sun @ 2002-03-25 23:11 UTC (permalink / raw)
To: Y.H. Ku; +Cc: Marc Karasek, linux-mips
Y.H. Ku wrote:
> Hi everybody,
>
> I trace PMON into mips.S, and find the entry "_go".
> the entry transfer control to client prog.
>
> I am confused of what information PMON transfer to MIPS's BOOTLOADER
> and transfer to which entry point of BOOTLOADER.
>
> I found the bd_t struct of PPCBOOT.h for PPCBOOT package on POWERPC platform.
> It is corresponding POWERPC-LINUX data structure bd_info in ~/include/asm/mbx.h
> (register r3~r7)
>
> I just can not find the entry for MIPS's one. (can not find corresponding baget.h's one)
>
> Could anybody tell me what is the information (register inforation) PMON transfer
> to bootloader?
>
> Or anybody can disscuss with me,
>
NEC provides PMON for DDB5476. You should be able to get it if it is not
already on the board.
Jun
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-25 23:11 ` Jun Sun
@ 2002-03-26 10:09 ` Y.H. Ku
2002-03-26 10:09 ` Y.H. Ku
2002-03-26 18:08 ` Jun Sun
0 siblings, 2 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-26 10:09 UTC (permalink / raw)
To: Jun Sun; +Cc: Marc Karasek, linux-mips
Ya,
I have traced the PMON code (www.carmel.com/pmon/) with NEC DDB5476 board (linux package from Montavista),
(LSI Logic' Software Support Package for MIPS processors version 5.3.33)
However, though it seem clear that function "_go" of pmon/head.S transfer control to client program
by "j k0" (a exception)
BUT I do not understand what information tha PMON transfer to LINUX-MIPS KERNEL
I found the KERNEL's entry is "kernel_entry" of ~arch/mips/kernel/head.S.
But, I can not find any information just like "board information" be transferred well.
where is it!? using sp register with "j k0" command?
where is the memory setting be transferred?
What MIPS LINUX needed!?
(PPCBOOT to PPC-LINUX is clear with a board_info struct, initrd_start and initrd_end ... and work well...
REALLY thanks for help,
--Ku
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Jun Sun
Sent: Tuesday, March 26, 2002 7:12 AM
To: Y.H. Ku
Cc: Marc Karasek; linux-mips@oss.sgi.com
Subject: Re: BootLoader on MIPS
Y.H. Ku wrote:
> Hi everybody,
>
> I trace PMON into mips.S, and find the entry "_go".
> the entry transfer control to client prog.
>
> I am confused of what information PMON transfer to MIPS's BOOTLOADER
> and transfer to which entry point of BOOTLOADER.
>
> I found the bd_t struct of PPCBOOT.h for PPCBOOT package on POWERPC platform.
> It is corresponding POWERPC-LINUX data structure bd_info in ~/include/asm/mbx.h
> (register r3~r7)
>
> I just can not find the entry for MIPS's one. (can not find corresponding baget.h's one)
>
> Could anybody tell me what is the information (register inforation) PMON transfer
> to bootloader?
>
> Or anybody can disscuss with me,
>
NEC provides PMON for DDB5476. You should be able to get it if it is not
already on the board.
Jun
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-26 10:09 ` Y.H. Ku
@ 2002-03-26 10:09 ` Y.H. Ku
2002-03-26 18:08 ` Jun Sun
1 sibling, 0 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-26 10:09 UTC (permalink / raw)
To: Jun Sun; +Cc: Marc Karasek, linux-mips
Ya,
I have traced the PMON code (www.carmel.com/pmon/) with NEC DDB5476 board (linux package from Montavista),
(LSI Logic' Software Support Package for MIPS processors version 5.3.33)
However, though it seem clear that function "_go" of pmon/head.S transfer control to client program
by "j k0" (a exception)
BUT I do not understand what information tha PMON transfer to LINUX-MIPS KERNEL
I found the KERNEL's entry is "kernel_entry" of ~arch/mips/kernel/head.S.
But, I can not find any information just like "board information" be transferred well.
where is it!? using sp register with "j k0" command?
where is the memory setting be transferred?
What MIPS LINUX needed!?
(PPCBOOT to PPC-LINUX is clear with a board_info struct, initrd_start and initrd_end ... and work well...
REALLY thanks for help,
--Ku
-----Original Message-----
From: owner-linux-mips@oss.sgi.com
[mailto:owner-linux-mips@oss.sgi.com]On Behalf Of Jun Sun
Sent: Tuesday, March 26, 2002 7:12 AM
To: Y.H. Ku
Cc: Marc Karasek; linux-mips@oss.sgi.com
Subject: Re: BootLoader on MIPS
Y.H. Ku wrote:
> Hi everybody,
>
> I trace PMON into mips.S, and find the entry "_go".
> the entry transfer control to client prog.
>
> I am confused of what information PMON transfer to MIPS's BOOTLOADER
> and transfer to which entry point of BOOTLOADER.
>
> I found the bd_t struct of PPCBOOT.h for PPCBOOT package on POWERPC platform.
> It is corresponding POWERPC-LINUX data structure bd_info in ~/include/asm/mbx.h
> (register r3~r7)
>
> I just can not find the entry for MIPS's one. (can not find corresponding baget.h's one)
>
> Could anybody tell me what is the information (register inforation) PMON transfer
> to bootloader?
>
> Or anybody can disscuss with me,
>
NEC provides PMON for DDB5476. You should be able to get it if it is not
already on the board.
Jun
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BootLoader on MIPS
2002-03-26 10:09 ` Y.H. Ku
2002-03-26 10:09 ` Y.H. Ku
@ 2002-03-26 18:08 ` Jun Sun
2002-03-27 12:14 ` Y.H. Ku
1 sibling, 1 reply; 12+ messages in thread
From: Jun Sun @ 2002-03-26 18:08 UTC (permalink / raw)
To: Y.H. Ku; +Cc: Marc Karasek, linux-mips
Y.H. Ku wrote:
> Ya,
> I have traced the PMON code (www.carmel.com/pmon/) with NEC DDB5476 board (linux package from Montavista),
> (LSI Logic' Software Support Package for MIPS processors version 5.3.33)
>
> However, though it seem clear that function "_go" of pmon/head.S transfer control to client program
> by "j k0" (a exception)
> BUT I do not understand what information tha PMON transfer to LINUX-MIPS KERNEL
> I found the KERNEL's entry is "kernel_entry" of ~arch/mips/kernel/head.S.
> But, I can not find any information just like "board information" be transferred well.
> where is it!?
"board information" is not transferred to kernel. However, parameters you
pass (as in "go <param>") are passed in as standard C main argument style.
These are processed in arch/mips/ddb5xxx/common/prom.c file, i.e., held in a0,
a1 registers.
> using sp register with "j k0" command?
No. sp is not meaningful when kernel starts.
> where is the memory setting be transferred?
system ram size? It is hardcode in ddb5476 code. See
include/asm/ddb5xxx/ddb5476.h file.
> What MIPS LINUX needed!?
I thought you have montavista linux (probably hardhat 2.0?).
> (PPCBOOT to PPC-LINUX is clear with a board_info struct, initrd_start and initrd_end ... and work well...
>
PPC booting is more regular than MIPS in general. So they have a more uniform
bootup process and structure. MIPS have a lot of vendors who are usually
very creative.
Jun
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-26 18:08 ` Jun Sun
@ 2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:23 ` Geert Uytterhoeven
0 siblings, 2 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-27 12:14 UTC (permalink / raw)
To: linux-mips
Thanks All!!!!
What I want to know is how PMON jump to linux kernel image,
when mips.S function "_go" execute "j k0" command,
(k0 is assigned by LREG(k0,R_EPC,gp) /* EPC */)
k0 will be 40*(DBGREG)=40* (0x7ff00bad),
the address is kuseg's domain. is it really work to turnin linux kernel image??
(In common case, linux kernl image always start from 0x100000)
any suggestion?
I just want to know MORE about the LINK method between PMON and MIPS-Linux?
best regards,
--Ku
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-27 12:14 ` Y.H. Ku
@ 2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:23 ` Geert Uytterhoeven
1 sibling, 0 replies; 12+ messages in thread
From: Y.H. Ku @ 2002-03-27 12:14 UTC (permalink / raw)
To: linux-mips
Thanks All!!!!
What I want to know is how PMON jump to linux kernel image,
when mips.S function "_go" execute "j k0" command,
(k0 is assigned by LREG(k0,R_EPC,gp) /* EPC */)
k0 will be 40*(DBGREG)=40* (0x7ff00bad),
the address is kuseg's domain. is it really work to turnin linux kernel image??
(In common case, linux kernl image always start from 0x100000)
any suggestion?
I just want to know MORE about the LINK method between PMON and MIPS-Linux?
best regards,
--Ku
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: BootLoader on MIPS
2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:14 ` Y.H. Ku
@ 2002-03-27 12:23 ` Geert Uytterhoeven
1 sibling, 0 replies; 12+ messages in thread
From: Geert Uytterhoeven @ 2002-03-27 12:23 UTC (permalink / raw)
To: Y.H. Ku; +Cc: Linux/MIPS Development
On Wed, 27 Mar 2002, Y.H. Ku wrote:
> What I want to know is how PMON jump to linux kernel image,
>
> when mips.S function "_go" execute "j k0" command,
> (k0 is assigned by LREG(k0,R_EPC,gp) /* EPC */)
> k0 will be 40*(DBGREG)=40* (0x7ff00bad),
>
> the address is kuseg's domain. is it really work to turnin linux kernel image??
> (In common case, linux kernl image always start from 0x100000)
>
> any suggestion?
> I just want to know MORE about the LINK method between PMON and MIPS-Linux?
On NEC DDB Vrc-5074, I always used something like
call kernel_entry -s 'console=ttyS4'
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2002-03-27 12:22 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-22 13:20 BootLoader on MIPS Marc Karasek
2002-03-23 8:42 ` Y.H. Ku
2002-03-23 8:42 ` Y.H. Ku
2002-03-25 23:11 ` Jun Sun
2002-03-26 10:09 ` Y.H. Ku
2002-03-26 10:09 ` Y.H. Ku
2002-03-26 18:08 ` Jun Sun
2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:14 ` Y.H. Ku
2002-03-27 12:23 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2002-03-22 8:16 Y.H. Ku
2002-03-22 8:16 ` Y.H. Ku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox