* YAMON booting Linux kernels from malta board harddisk....
@ 2007-09-21 8:18 KokHow.Teh
2007-09-21 8:18 ` KokHow.Teh
2007-09-21 9:37 ` Elizabeth Oldham
0 siblings, 2 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 8:18 UTC (permalink / raw)
To: linux-mips; +Cc: Friedrich-Nachtmann.External
Hi list;
I read of MIPSboot that is loaded into the MBR which is then
read from YAMON to boot a selection of kernels from the harddisk.
However, google-ing for "MIPSboot" does not yield any useful result so
far. Does anybody have any insight and experience to share as to what
and how to setup the MBR of a harddisk that I can boot a selection of
Linux kernels from YAMON on Malta board?
Thanks.
Regards,
KH
^ permalink raw reply [flat|nested] 12+ messages in thread
* YAMON booting Linux kernels from malta board harddisk....
2007-09-21 8:18 YAMON booting Linux kernels from malta board harddisk KokHow.Teh
@ 2007-09-21 8:18 ` KokHow.Teh
2007-09-21 9:37 ` Elizabeth Oldham
1 sibling, 0 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 8:18 UTC (permalink / raw)
To: linux-mips; +Cc: Friedrich-Nachtmann.External
Hi list;
I read of MIPSboot that is loaded into the MBR which is then
read from YAMON to boot a selection of kernels from the harddisk.
However, google-ing for "MIPSboot" does not yield any useful result so
far. Does anybody have any insight and experience to share as to what
and how to setup the MBR of a harddisk that I can boot a selection of
Linux kernels from YAMON on Malta board?
Thanks.
Regards,
KH
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 8:18 YAMON booting Linux kernels from malta board harddisk KokHow.Teh
2007-09-21 8:18 ` KokHow.Teh
@ 2007-09-21 9:37 ` Elizabeth Oldham
2007-09-21 9:51 ` KokHow.Teh
1 sibling, 1 reply; 12+ messages in thread
From: Elizabeth Oldham @ 2007-09-21 9:37 UTC (permalink / raw)
To: KokHow.Teh; +Cc: linux-mips, Friedrich-Nachtmann.External
KokHow.Teh@infineon.com wrote:
> I read of MIPSboot that is loaded into the MBR which is then
> read from YAMON to boot a selection of kernels from the harddisk.
MIPSboot is my rather hacked bootloader that goes with the MIPS/TimeSys
Linux distro, and does not as yet sit in the MBR...one day perhaps.
Anyway, it sits at the beginning of the first partition on disk (which
should not be formatted with a filesystem and can be very small), and
then loaded with a YAMON command line like:
YAMON> disk read hda 3f ff 800d0000; go 800d0000
MIPSboot version 0.3
Loading /boot/mb.conf . ok
Choose a kernel image to boot:
(0) aprp-2.6.19-glibc root=/dev/hda3
(1) smtc-2.6.19-glibc root=/dev/hda3
...
You can put that command line in the "start" environment variable to
autostart it.
I've dropped source and binary tarballs together with an example conf
file on our ftp site:
ftp://ftp.mips.com/pub/tools/software/timesys/extras/mipsboot/
If you have any queries about it send me email.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 9:37 ` Elizabeth Oldham
@ 2007-09-21 9:51 ` KokHow.Teh
2007-09-21 9:51 ` KokHow.Teh
2007-09-21 10:17 ` Elizabeth Oldham
0 siblings, 2 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 9:51 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi Beth;
Thanks for your prompt reply. I have some questions. This is my
disk configuration:
[tehkok@linux4:~ 3]$ sudo fdisk -l /dev/hdd
Disk /dev/hdd: 16 heads, 63 sectors, 79656 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 2081 1048544 83 Linux
/dev/hdd2 2081 4162 1048575 82 Linux swap
/dev/hdd3 4162 6242 1048580 83 Linux
/dev/hdd4 6242 79656 37000893+ 5 Extended
/dev/hdd5 6242 8323 1048578+ 83 Linux
/dev/hdd6 8323 10403 1048578+ 83 Linux
/dev/hdd7 10403 12484 1048568+ 83 Linux
/dev/hdd8 12484 14564 1048568+ 83 Linux
[tehkok@linux4:~ 4]$
I need to load the mipsboot into /dev/hda1 that reads the
configuration from /dev/hda1/boot and boots linux kernel from
/dev/hda1/boot/*.
[tehkok@linux4:/mnt/hdd1 10]$ l
total 4
drwxr-xr-x 3 root root 4096 Sep 22 03:22 boot
[tehkok@linux4:/mnt/hdd1 11]$ ls boot
System.map-kernel-aprp-2.6.19-malta.12
changelog-kernel-exp-2.6.20-malta.6 grub
vmlinux.srec-kernel-aprp-2.6.19-malta.12
System.map-kernel-exp-aprp-2.6.20-malta.6
config-kernel-aprp-2.6.19-malta.12
vmlinux-kernel-aprp-2.6.19-malta.12
vmlinux.srec-kernel-exp-aprp-2.6.20-malta.6
System.map-kernel-exp-smtc-2.6.20-malta.6
config-kernel-exp-aprp-2.6.20-malta.6
vmlinux-kernel-exp-aprp-2.6.20-malta.6
vmlinux.srec-kernel-exp-smtc-2.6.20-malta.6
System.map-kernel-exp-smvp-2.6.20-malta.6
config-kernel-exp-smtc-2.6.20-malta.6
vmlinux-kernel-exp-smtc-2.6.20-malta.6
vmlinux.srec-kernel-exp-smvp-2.6.20-malta.6
System.map-kernel-smtc-2.6.19-malta.12
config-kernel-exp-smvp-2.6.20-malta.6
vmlinux-kernel-exp-smvp-2.6.20-malta.6
vmlinux.srec-kernel-smtc-2.6.19-malta.12
System.map-kernel-smvp-2.6.19-malta.12
config-kernel-smtc-2.6.19-malta.12
vmlinux-kernel-smtc-2.6.19-malta.12
vmlinux.srec-kernel-smvp-2.6.19-malta.12
changelog-kernel-2.6.19-malta.12
config-kernel-smvp-2.6.19-malta.12
vmlinux-kernel-smvp-2.6.19-malta.12
[tehkok@linux4:/mnt/hdd1 12]$
and /dev/hda1 is formatted as ext3 BOOT partition. Is it
possible to do that?
Thanks.
Regards,
KH.
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 5:37 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External)
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> I read of MIPSboot that is loaded into the MBR which is then
read
> from YAMON to boot a selection of kernels from the harddisk.
MIPSboot is my rather hacked bootloader that goes with the MIPS/TimeSys
Linux distro, and does not as yet sit in the MBR...one day perhaps.
Anyway, it sits at the beginning of the first partition on disk (which
should not be formatted with a filesystem and can be very small), and
then loaded with a YAMON command line like:
YAMON> disk read hda 3f ff 800d0000; go 800d0000
MIPSboot version 0.3
Loading /boot/mb.conf . ok
Choose a kernel image to boot:
(0) aprp-2.6.19-glibc root=/dev/hda3
(1) smtc-2.6.19-glibc root=/dev/hda3
...
You can put that command line in the "start" environment variable to
autostart it.
I've dropped source and binary tarballs together with an example conf
file on our ftp site:
ftp://ftp.mips.com/pub/tools/software/timesys/extras/mipsboot/
If you have any queries about it send me email.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 9:51 ` KokHow.Teh
@ 2007-09-21 9:51 ` KokHow.Teh
2007-09-21 10:17 ` Elizabeth Oldham
1 sibling, 0 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 9:51 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi Beth;
Thanks for your prompt reply. I have some questions. This is my
disk configuration:
[tehkok@linux4:~ 3]$ sudo fdisk -l /dev/hdd
Disk /dev/hdd: 16 heads, 63 sectors, 79656 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 2081 1048544 83 Linux
/dev/hdd2 2081 4162 1048575 82 Linux swap
/dev/hdd3 4162 6242 1048580 83 Linux
/dev/hdd4 6242 79656 37000893+ 5 Extended
/dev/hdd5 6242 8323 1048578+ 83 Linux
/dev/hdd6 8323 10403 1048578+ 83 Linux
/dev/hdd7 10403 12484 1048568+ 83 Linux
/dev/hdd8 12484 14564 1048568+ 83 Linux
[tehkok@linux4:~ 4]$
I need to load the mipsboot into /dev/hda1 that reads the
configuration from /dev/hda1/boot and boots linux kernel from
/dev/hda1/boot/*.
[tehkok@linux4:/mnt/hdd1 10]$ l
total 4
drwxr-xr-x 3 root root 4096 Sep 22 03:22 boot
[tehkok@linux4:/mnt/hdd1 11]$ ls boot
System.map-kernel-aprp-2.6.19-malta.12
changelog-kernel-exp-2.6.20-malta.6 grub
vmlinux.srec-kernel-aprp-2.6.19-malta.12
System.map-kernel-exp-aprp-2.6.20-malta.6
config-kernel-aprp-2.6.19-malta.12
vmlinux-kernel-aprp-2.6.19-malta.12
vmlinux.srec-kernel-exp-aprp-2.6.20-malta.6
System.map-kernel-exp-smtc-2.6.20-malta.6
config-kernel-exp-aprp-2.6.20-malta.6
vmlinux-kernel-exp-aprp-2.6.20-malta.6
vmlinux.srec-kernel-exp-smtc-2.6.20-malta.6
System.map-kernel-exp-smvp-2.6.20-malta.6
config-kernel-exp-smtc-2.6.20-malta.6
vmlinux-kernel-exp-smtc-2.6.20-malta.6
vmlinux.srec-kernel-exp-smvp-2.6.20-malta.6
System.map-kernel-smtc-2.6.19-malta.12
config-kernel-exp-smvp-2.6.20-malta.6
vmlinux-kernel-exp-smvp-2.6.20-malta.6
vmlinux.srec-kernel-smtc-2.6.19-malta.12
System.map-kernel-smvp-2.6.19-malta.12
config-kernel-smtc-2.6.19-malta.12
vmlinux-kernel-smtc-2.6.19-malta.12
vmlinux.srec-kernel-smvp-2.6.19-malta.12
changelog-kernel-2.6.19-malta.12
config-kernel-smvp-2.6.19-malta.12
vmlinux-kernel-smvp-2.6.19-malta.12
[tehkok@linux4:/mnt/hdd1 12]$
and /dev/hda1 is formatted as ext3 BOOT partition. Is it
possible to do that?
Thanks.
Regards,
KH.
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 5:37 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External)
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> I read of MIPSboot that is loaded into the MBR which is then
read
> from YAMON to boot a selection of kernels from the harddisk.
MIPSboot is my rather hacked bootloader that goes with the MIPS/TimeSys
Linux distro, and does not as yet sit in the MBR...one day perhaps.
Anyway, it sits at the beginning of the first partition on disk (which
should not be formatted with a filesystem and can be very small), and
then loaded with a YAMON command line like:
YAMON> disk read hda 3f ff 800d0000; go 800d0000
MIPSboot version 0.3
Loading /boot/mb.conf . ok
Choose a kernel image to boot:
(0) aprp-2.6.19-glibc root=/dev/hda3
(1) smtc-2.6.19-glibc root=/dev/hda3
...
You can put that command line in the "start" environment variable to
autostart it.
I've dropped source and binary tarballs together with an example conf
file on our ftp site:
ftp://ftp.mips.com/pub/tools/software/timesys/extras/mipsboot/
If you have any queries about it send me email.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 9:51 ` KokHow.Teh
2007-09-21 9:51 ` KokHow.Teh
@ 2007-09-21 10:17 ` Elizabeth Oldham
2007-09-21 10:27 ` KokHow.Teh
1 sibling, 1 reply; 12+ messages in thread
From: Elizabeth Oldham @ 2007-09-21 10:17 UTC (permalink / raw)
To: KokHow.Teh; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
KokHow.Teh@infineon.com wrote:
> I need to load the mipsboot into /dev/hda1 that reads the
> configuration from /dev/hda1/boot and boots linux kernel from
> /dev/hda1/boot/*.
Can you leave a partition without a filesystem? The bootloader image
needs to be dropped into a known position and written as a contiguous
block...
For comparison the MIPS/TimeSys hard disk configuration:
-bash-3.1# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 20 10048+ 83 Linux
/dev/hda2 21 15522 7813008 83 Linux
/dev/hda3 15523 31024 7813008 83 Linux
/dev/hda4 31025 71906 20604528 5 Extended
/dev/hda5 31025 31994 488848+ 82 Linux swap
/dev/hda6 31995 47496 7812976+ 83 Linux
/dev/hda7 47497 62998 7812976+ 83 Linux
/dev/hda8 62999 63968 488848+ 83 Linux
/dev/hda9 63969 64938 488848+ 83 Linux
The first partition is reserved for the bootloader. It doesn't have to
the first it was just convienent to me, it could be any, so if you can
shuffle the partitions up slightly and have a couple of MBytes at the
end perhaps?
> and /dev/hda1 is formatted as ext3 BOOT partition. Is it
> possible to do that?
The bootloader will cope with an ext3 filesystem.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 10:17 ` Elizabeth Oldham
@ 2007-09-21 10:27 ` KokHow.Teh
2007-09-21 10:27 ` KokHow.Teh
2007-09-21 11:00 ` Elizabeth Oldham
0 siblings, 2 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 10:27 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi;
[tehkok@linux4:~ 3]$ sudo fdisk -l /dev/hdd
Disk /dev/hdd: 16 heads, 63 sectors, 79656 cylinders Units = cylinders
of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 2081 1048544 83 Linux
/dev/hdd2 2081 4162 1048575 82 Linux swap
/dev/hdd3 4162 6242 1048580 83 Linux
/dev/hdd4 6242 79656 37000893+ 5 Extended
/dev/hdd5 6242 8323 1048578+ 83 Linux
/dev/hdd6 8323 10403 1048578+ 83 Linux
/dev/hdd7 10403 12484 1048568+ 83 Linux
/dev/hdd8 12484 14564 1048568+ 83 Linux
[tehkok@linux4:~ 4]$
So I `dd if=mb-0.3.bin of=/dev/hdd6 bs=1024 count=150` and hope
it works. Now there are 2 questions:
(1) where to put mb.conf?
(2) how to specify the 6th partition on YAMON?
YAMON> disk read hda 3f ff 800d0000; go 800d0000
Thanks.
Regards,
KH
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 6:17 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External); kurt@mips.com
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> I need to load the mipsboot into /dev/hda1 that reads the
> configuration from /dev/hda1/boot and boots linux kernel from
> /dev/hda1/boot/*.
Can you leave a partition without a filesystem? The bootloader image
needs to be dropped into a known position and written as a contiguous
block...
For comparison the MIPS/TimeSys hard disk configuration:
-bash-3.1# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders Units = cylinders of 1008 *
512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 20 10048+ 83 Linux
/dev/hda2 21 15522 7813008 83 Linux
/dev/hda3 15523 31024 7813008 83 Linux
/dev/hda4 31025 71906 20604528 5 Extended
/dev/hda5 31025 31994 488848+ 82 Linux swap
/dev/hda6 31995 47496 7812976+ 83 Linux
/dev/hda7 47497 62998 7812976+ 83 Linux
/dev/hda8 62999 63968 488848+ 83 Linux
/dev/hda9 63969 64938 488848+ 83 Linux
The first partition is reserved for the bootloader. It doesn't have to
the first it was just convienent to me, it could be any, so if you can
shuffle the partitions up slightly and have a couple of MBytes at the
end perhaps?
> and /dev/hda1 is formatted as ext3 BOOT partition. Is it
possible to
> do that?
The bootloader will cope with an ext3 filesystem.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 10:27 ` KokHow.Teh
@ 2007-09-21 10:27 ` KokHow.Teh
2007-09-21 11:00 ` Elizabeth Oldham
1 sibling, 0 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 10:27 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi;
[tehkok@linux4:~ 3]$ sudo fdisk -l /dev/hdd
Disk /dev/hdd: 16 heads, 63 sectors, 79656 cylinders Units = cylinders
of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 2081 1048544 83 Linux
/dev/hdd2 2081 4162 1048575 82 Linux swap
/dev/hdd3 4162 6242 1048580 83 Linux
/dev/hdd4 6242 79656 37000893+ 5 Extended
/dev/hdd5 6242 8323 1048578+ 83 Linux
/dev/hdd6 8323 10403 1048578+ 83 Linux
/dev/hdd7 10403 12484 1048568+ 83 Linux
/dev/hdd8 12484 14564 1048568+ 83 Linux
[tehkok@linux4:~ 4]$
So I `dd if=mb-0.3.bin of=/dev/hdd6 bs=1024 count=150` and hope
it works. Now there are 2 questions:
(1) where to put mb.conf?
(2) how to specify the 6th partition on YAMON?
YAMON> disk read hda 3f ff 800d0000; go 800d0000
Thanks.
Regards,
KH
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 6:17 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External); kurt@mips.com
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> I need to load the mipsboot into /dev/hda1 that reads the
> configuration from /dev/hda1/boot and boots linux kernel from
> /dev/hda1/boot/*.
Can you leave a partition without a filesystem? The bootloader image
needs to be dropped into a known position and written as a contiguous
block...
For comparison the MIPS/TimeSys hard disk configuration:
-bash-3.1# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders Units = cylinders of 1008 *
512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 20 10048+ 83 Linux
/dev/hda2 21 15522 7813008 83 Linux
/dev/hda3 15523 31024 7813008 83 Linux
/dev/hda4 31025 71906 20604528 5 Extended
/dev/hda5 31025 31994 488848+ 82 Linux swap
/dev/hda6 31995 47496 7812976+ 83 Linux
/dev/hda7 47497 62998 7812976+ 83 Linux
/dev/hda8 62999 63968 488848+ 83 Linux
/dev/hda9 63969 64938 488848+ 83 Linux
The first partition is reserved for the bootloader. It doesn't have to
the first it was just convienent to me, it could be any, so if you can
shuffle the partitions up slightly and have a couple of MBytes at the
end perhaps?
> and /dev/hda1 is formatted as ext3 BOOT partition. Is it
possible to
> do that?
The bootloader will cope with an ext3 filesystem.
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 10:27 ` KokHow.Teh
2007-09-21 10:27 ` KokHow.Teh
@ 2007-09-21 11:00 ` Elizabeth Oldham
2007-09-21 11:20 ` KokHow.Teh
1 sibling, 1 reply; 12+ messages in thread
From: Elizabeth Oldham @ 2007-09-21 11:00 UTC (permalink / raw)
To: KokHow.Teh; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
KokHow.Teh@infineon.com wrote:
> /dev/hdd6 8323 10403 1048578+ 83 Linux
> So I `dd if=mb-0.3.bin of=/dev/hdd6 bs=1024 count=150` and hope
> it works. Now there are 2 questions:
It will be easier if you change fdisk's units to sectors, so it prints
the start of the partition for you. I get this from my set up:
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 63 20159 10048+ 83 Linux
/dev/hda2 20160 15646175 7813008 83 Linux
/dev/hda3 15646176 31272191 7813008 83 Linux
/dev/hda4 31272192 72481247 20604528 5 Extended
/dev/hda5 31272255 32249951 488848+ 82 Linux swap
/dev/hda6 32250015 47875967 7812976+ 83 Linux
So (I think, if there are no gotchas - it's a while since I played with
this stuff) the YAMON command would be:
YAMON> disk read hda 1ec18a0 ff 800d0000; go 800d0000
where 1ec18a0 is (32250015 + 1) in hex.
> (1) where to put mb.conf?
As it stands the bootloader will look in /dev/hda2 if you are running BE
and /dev/hda3 if LE. For now just try getting MIPSboot to start :)
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 11:00 ` Elizabeth Oldham
@ 2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:42 ` Elizabeth Oldham
0 siblings, 2 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 11:20 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi Beth
My question was which partition to put the md.conf? Does it go
with the mb.bin or it can be put at any other partition?
Thanks & Regards,
KH
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 7:00 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External); kurt@mips.com
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> /dev/hdd6 8323 10403 1048578+ 83 Linux
> So I `dd if=mb-0.3.bin of=/dev/hdd6 bs=1024 count=150` and hope
it
> works. Now there are 2 questions:
It will be easier if you change fdisk's units to sectors, so it prints
the start of the partition for you. I get this from my set up:
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 63 20159 10048+ 83 Linux
/dev/hda2 20160 15646175 7813008 83 Linux
/dev/hda3 15646176 31272191 7813008 83 Linux
/dev/hda4 31272192 72481247 20604528 5 Extended
/dev/hda5 31272255 32249951 488848+ 82 Linux swap
/dev/hda6 32250015 47875967 7812976+ 83 Linux
So (I think, if there are no gotchas - it's a while since I played with
this stuff) the YAMON command would be:
YAMON> disk read hda 1ec18a0 ff 800d0000; go 800d0000
where 1ec18a0 is (32250015 + 1) in hex.
> (1) where to put mb.conf?
As it stands the bootloader will look in /dev/hda2 if you are running BE
and /dev/hda3 if LE. For now just try getting MIPSboot to start :)
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 11:20 ` KokHow.Teh
@ 2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:42 ` Elizabeth Oldham
1 sibling, 0 replies; 12+ messages in thread
From: KokHow.Teh @ 2007-09-21 11:20 UTC (permalink / raw)
To: beth; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
Hi Beth
My question was which partition to put the md.conf? Does it go
with the mb.bin or it can be put at any other partition?
Thanks & Regards,
KH
-----Original Message-----
From: Elizabeth Oldham [mailto:beth@mips.com]
Sent: Friday, September 21, 2007 7:00 PM
To: Teh Kok How (IFAP DC COM WL SD)
Cc: linux-mips@linux-mips.org; Nachtmann Friedrich (IFAP DC COM WL SD
External); kurt@mips.com
Subject: Re: YAMON booting Linux kernels from malta board harddisk....
KokHow.Teh@infineon.com wrote:
> /dev/hdd6 8323 10403 1048578+ 83 Linux
> So I `dd if=mb-0.3.bin of=/dev/hdd6 bs=1024 count=150` and hope
it
> works. Now there are 2 questions:
It will be easier if you change fdisk's units to sectors, so it prints
the start of the partition for you. I get this from my set up:
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 63 20159 10048+ 83 Linux
/dev/hda2 20160 15646175 7813008 83 Linux
/dev/hda3 15646176 31272191 7813008 83 Linux
/dev/hda4 31272192 72481247 20604528 5 Extended
/dev/hda5 31272255 32249951 488848+ 82 Linux swap
/dev/hda6 32250015 47875967 7812976+ 83 Linux
So (I think, if there are no gotchas - it's a while since I played with
this stuff) the YAMON command would be:
YAMON> disk read hda 1ec18a0 ff 800d0000; go 800d0000
where 1ec18a0 is (32250015 + 1) in hex.
> (1) where to put mb.conf?
As it stands the bootloader will look in /dev/hda2 if you are running BE
and /dev/hda3 if LE. For now just try getting MIPSboot to start :)
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: YAMON booting Linux kernels from malta board harddisk....
2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:20 ` KokHow.Teh
@ 2007-09-21 11:42 ` Elizabeth Oldham
1 sibling, 0 replies; 12+ messages in thread
From: Elizabeth Oldham @ 2007-09-21 11:42 UTC (permalink / raw)
To: KokHow.Teh; +Cc: linux-mips, Friedrich-Nachtmann.External, kurt
KokHow.Teh@infineon.com wrote:
Hi KH,
> My question was which partition to put the md.conf? Does it go
> with the mb.bin or it can be put at any other partition?
It does not have to go with the binary image. "mb.conf" needs to go in
/dev/hda2 and 3 as I described unless you change the source - its hardcoded.
Shall we take this off list?
Beth
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2007-09-21 11:42 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-21 8:18 YAMON booting Linux kernels from malta board harddisk KokHow.Teh
2007-09-21 8:18 ` KokHow.Teh
2007-09-21 9:37 ` Elizabeth Oldham
2007-09-21 9:51 ` KokHow.Teh
2007-09-21 9:51 ` KokHow.Teh
2007-09-21 10:17 ` Elizabeth Oldham
2007-09-21 10:27 ` KokHow.Teh
2007-09-21 10:27 ` KokHow.Teh
2007-09-21 11:00 ` Elizabeth Oldham
2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:20 ` KokHow.Teh
2007-09-21 11:42 ` Elizabeth Oldham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox