Hello,
Are there any detailed instruction on how to install F-11 such that it replaces Ubuntu completely? I see instructions for running via tftp & nfs, but that is not quite what I'm after. I would like to boot from USB hard drive into F-11. Even a live usb flashdrive would be nice.
Thanks, -Steve
Create a linux fs in the usb disk as a new partition, and untar in it the f11 root contents you can download from the web.
Then set up uboot to load the kernel from the usb device partition, setting the root= kernel parameter pointing to the proper scsi device (as usb disks are seen as scsi devices). I haven't tried, but this should be enough.
Regards, Lluís.
2009/8/25 Steve Grubb sgrubb@redhat.com:
Hello,
Are there any detailed instruction on how to install F-11 such that it replaces Ubuntu completely? I see instructions for running via tftp & nfs, but that is not quite what I'm after. I would like to boot from USB hard drive into F-11. Even a live usb flashdrive would be nice.
Thanks, -Steve
fedora-arm mailing list fedora-arm@redhat.com https://www.redhat.com/mailman/listinfo/fedora-arm
On Tuesday 25 August 2009 11:12:47 am Lluís Batlle wrote:
Create a linux fs in the usb disk as a new partition, and untar in it the f11 root contents you can download from the web.
Tried that.
Then set up uboot to load the kernel from the usb device partition, setting the root= kernel parameter pointing to the proper scsi device (as usb disks are seen as scsi devices). I haven't tried, but this should be enough.
I found this page:
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html
And made some changes. Let's just assume /dev/sda1 for the usb.
setenv bootargs_root 'root=/dev/sda1 rootdelay=10' setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /boot/uInitrd; ext2load usb 0:1 0x6400000 /boot/uImage-2.6.30-sheevaplug' setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm ' 0x6400000
When I boot, I get Bad Magic. I also noticed that the instructions use something called uInitrd. I have no idea where that came from. Wonder if that is the missing piece?
-Steve
The debian people use not only a kernel to boot, but also an initrd image. I can't remember if also fedora uses it. As the kernel, you have to load that image into memory, and then pass that address as a second parameter to bootm. The first parameter is the memory address of the kernel. If the fedora people provide also an initrd, pass its memory address as the second parameter to bootm.
Btw, why you have an apostrophe between "bootm" and the memory address 0x6400000 ?
Regards, Lluís.
2009/8/25 Steve Grubb sgrubb@redhat.com:
On Tuesday 25 August 2009 11:12:47 am Lluís Batlle wrote:
Create a linux fs in the usb disk as a new partition, and untar in it the f11 root contents you can download from the web.
Tried that.
Then set up uboot to load the kernel from the usb device partition, setting the root= kernel parameter pointing to the proper scsi device (as usb disks are seen as scsi devices). I haven't tried, but this should be enough.
I found this page:
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html
And made some changes. Let's just assume /dev/sda1 for the usb.
setenv bootargs_root 'root=/dev/sda1 rootdelay=10' setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /boot/uInitrd; ext2load usb 0:1 0x6400000 /boot/uImage-2.6.30-sheevaplug' setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm ' 0x6400000
When I boot, I get Bad Magic. I also noticed that the instructions use something called uInitrd. I have no idea where that came from. Wonder if that is the missing piece?
-Steve
fedora-arm mailing list fedora-arm@redhat.com https://www.redhat.com/mailman/listinfo/fedora-arm
On Tuesday 25 August 2009 11:37:35 am Lluís Batlle wrote:
The debian people use not only a kernel to boot, but also an initrd image. I can't remember if also fedora uses it.
This is why I'd like to work out the recipe and put it in the wiki. There's a lot more info floating around the web for doing this on Ubuntu
As the kernel, you have to load that image into memory, and then pass that address as a second parameter to bootm. The first parameter is the memory address of the kernel. If the fedora people provide also an initrd, pass its memory address as the second parameter to bootm.
OK.
Btw, why you have an apostrophe between "bootm" and the memory address 0x6400000 ?
The kernel I was using comes from here:
http://fedoraproject.org/wiki/Architectures/ARM/PlatformSheevaplug
Farther down on the page is using it by tftp, so I assumed that is the address.
-Steve
On Tuesday 25 August 2009 11:46:40 am Steve Grubb wrote:
As the kernel, you have to load that image into memory, and then pass that address as a second parameter to bootm. The first parameter is the memory address of the kernel. If the fedora people provide also an initrd, pass its memory address as the second parameter to bootm.
Just to document this farther. Here's what I am doing:
in uBoot: setenv mainlineLinux yes setenv arcNumber 2097 setenv bootargs_root 'root=/dev/sda1 rootdelay=10' setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x6400000 /boot/uImage-2.6.30' setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000 saveenv
run bootcmd
It almost works...but ends like this:
2096012 bytes read ## Booting image at 06400000 ... Image Name: Linux-2.6.30-00000-v2.6.30 Created: 2009-06-26 5:29:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2095948 Bytes = 2 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK
Starting kernel ...
Uncompressing Linux........................................................................................................................................ done, booting the kernel.
Error: unrecognized/unsupported machine ID (r1 = 0x0000020f).
Available machine support:
ID (hex) NAME 00000690 Marvell DB-88F6281-BP Development Board 00000691 Marvell RD-88F6192-NAS Development Board 00000692 Marvell RD-88F6281 Reference Board 00000831 Marvell SheevaPlug Reference Board 0000085b QNAP TS-119/TS-219
Please check your kernel config and/or bootloader.
Any ideas about what might be going on here?
Thanks, -Steve
2009/8/25 Steve Grubb sgrubb@redhat.com:
in uBoot: setenv mainlineLinux yes setenv arcNumber 2097 setenv bootargs_root 'root=/dev/sda1 rootdelay=10' setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x6400000 /boot/uImage-2.6.30' setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000' saveenv
run bootcmd ID (hex) NAME 00000831 Marvell SheevaPlug Reference Board
0831 is 2097 in hex. Are you sure you have set this:
setenv mainlineLinux yes setenv arcNumber 2097
?
On Tuesday 25 August 2009 12:54:52 pm Lluís Batlle wrote:
0831 is 2097 in hex. Are you sure you have set this:
setenv mainlineLinux yes setenv arcNumber 2097
I got an email offlist that said I need to add a reset command to the recipe. With that, I now have a sheevaplug running Fedora from a USB drive. I am taking some notes on everything I had to do so that I can help improve the docs.
-Steve
Steve Grubb píše v Út 25. 08. 2009 v 13:06 -0400:
On Tuesday 25 August 2009 12:54:52 pm Lluís Batlle wrote:
0831 is 2097 in hex. Are you sure you have set this:
setenv mainlineLinux yes setenv arcNumber 2097
I got an email offlist that said I need to add a reset command to the recipe. With that, I now have a sheevaplug running Fedora from a USB drive. I am taking some notes on everything I had to do so that I can help improve the docs.
Thanks to Steve's experiments and after reading http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html I am now running Fedora 11 completely from a SD card.
Dan
On Friday 28 August 2009 09:32:35 am Dan Horák wrote:
I got an email offlist that said I need to add a reset command to the recipe. With that, I now have a sheevaplug running Fedora from a USB drive. I am taking some notes on everything I had to do so that I can help improve the docs.
Thanks to Steve's experiments and after reading http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html I am now running Fedora 11 completely from a SD card.
I wrote up a detailed HOWTO and put it here:
https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB
I will hook it to the main project page in a day or two so that people can review or correct it before its linked in.
If you wanted to add what changes you needed to do for the flash card at the bottom, we could make a 1 page howto for different boot devices. But in any event, I hope people find this documentation useful.
-Steve
On Fri, 28 Aug 2009, Steve Grubb wrote:
On Friday 28 August 2009 09:32:35 am Dan Horák wrote:
I got an email offlist that said I need to add a reset command to the recipe. With that, I now have a sheevaplug running Fedora from a USB drive. I am taking some notes on everything I had to do so that I can help improve the docs.
Thanks to Steve's experiments and after reading http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html I am now running Fedora 11 completely from a SD card.
I wrote up a detailed HOWTO and put it here:
https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB
I will hook it to the main project page in a day or two so that people can review or correct it before its linked in.
If you wanted to add what changes you needed to do for the flash card at the bottom, we could make a 1 page howto for different boot devices. But in any event, I hope people find this documentation useful.
I don't know if the filesystem image has this by default, but configuring an agetty process on ttyS0 is really helpful.
/sbin/agetty -L ttyS0 115200
This way you can log in through the USB serial link.
Nicolas
Another option is to create a JFFS2 image of the Fedora-ARM rootfs and burn it directly into the flash of the plug.
(Assuming mtd1 is your rootfs)
# flash_eraseall /dev/mtd1 # nandwrite /dev/mtd1 rootfs-f11.jffs2.img
And then in uboot:
bootargs_root=root=/dev/mtdblock1 rw rootfstype=jffs2
Kedar.
-----Original Message----- From: fedora-arm-bounces@redhat.com [mailto:fedora-arm- bounces@redhat.com] On Behalf Of Steve Grubb Sent: 25 August 2009 20:23 To: fedora-arm@redhat.com Subject: [fedora-arm] replacing ubuntu on sheevaplug
Hello,
Are there any detailed instruction on how to install F-11 such that it replaces Ubuntu completely? I see instructions for running via tftp & nfs, but that is not quite what I'm after. I would like to boot from USB hard drive into F-11. Even a live usb flashdrive would be nice.
Thanks, -Steve
fedora-arm mailing list fedora-arm@redhat.com https://www.redhat.com/mailman/listinfo/fedora-arm