|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
|
|
|
Re: HP mv2120 support in Orion treeMarc Singer wrote: uImage must be at 0x0 and uInitrd must be at 0x200000 since uBoot expects them to be there.On Tue, Jun 10, 2008 at 10:45:37PM +0300, Eugene San wrote:Martin: Thank you for answering my question. To create install image we need uImage, uInitrd and mkimage a) uImage can be provided by make uImage in kernel source tree or by converting regular image with: |mkimage -A arm -O linux -T kernel -C none -a 0x80000 -e 0x80000 -n "Linux 2.6" -d linux.bin uImage.bin | ( http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2 ) b) uInitr can be created from regular inird by: "mkimage -T ramdisk -C none -n 'Test Ramdisk Image -d ramdisk.img.gz uRamdisk" ( http://www.denx.de/wiki/view/DULG/RootFileSystemOnARamdisk ) c) mkimage is available as package in SID, http://packages.debian.org/search?keywords=uboot-mkimage Final combined image (recovery.img), that may be uploaded and executed on device using original recovery utility, is just two files glued together. uImage must be padded to 2M and uInitrd to 8M and maybe compressed by replacing "-C none" with "-C gzip". If you need more help, I'll be glad to assist.Are you sure the ramdisk must be padded to 8MiB? Is the full image size supposed to be 10MiB, 2 + 8? uInitrd size is limited to 8Mb in original first stage image, probably by in Kernel ramdisk size. Bigger image may work, need to be tested. In case that will not work for us, we still can use second stage image, which maybe much bigger. |
|
|
Re: HP mv2120 support in Orion treeOn Wed, Jun 11, 2008 at 12:55:25AM +0300, Eugene San wrote:
> Marc Singer wrote: > >> On Tue, Jun 10, 2008 at 10:45:37PM +0300, Eugene San wrote: >> >>> Martin: Thank you for answering my question. >>> >>> To create install image we need uImage, uInitrd and mkimage >>> a) uImage can be provided by make uImage in kernel source tree or by >>> converting regular image with: |mkimage -A arm -O linux -T kernel -C >>> none -a 0x80000 -e 0x80000 -n "Linux 2.6" -d linux.bin uImage.bin | >>> ( http://www.denx.de/wiki/view/DULG/LinuxConfiguration#Section_6.2 ) >>> b) uInitr can be created from regular inird by: "mkimage -T ramdisk >>> -C none -n 'Test Ramdisk Image -d ramdisk.img.gz uRamdisk" >>> ( http://www.denx.de/wiki/view/DULG/RootFileSystemOnARamdisk ) >>> c) mkimage is available as package in SID, >>> http://packages.debian.org/search?keywords=uboot-mkimage >>> Final combined image (recovery.img), that may be uploaded and >>> executed on device using original recovery utility, is just two >>> files glued together. >>> uImage must be padded to 2M and uInitrd to 8M and maybe compressed by >>> replacing "-C none" with "-C gzip". >>> >>> If you need more help, I'll be glad to assist. >>> >> >> Are you sure the ramdisk must be padded to 8MiB? Is the full image >> size supposed to be 10MiB, 2 + 8? >> >> > uImage must be at 0x0 and uInitrd must be at 0x200000 since uBoot > expects them to be there. > uInitrd size is limited to 8Mb in original first stage image, probably > by in Kernel ramdisk size. Bigger image may work, need to be tested. > In case that will not work for us, we still can use second stage image, > which maybe much bigger. Good. I'll get back to you all when I can run some tests. BTW, do you know if uBoot will accept a multi-part image via the bootext2 command? -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion treeMarc Singer wrote: Do you think of single initrd or several for each machine?On Tue, Jun 10, 2008 at 08:23:25PM +0200, Martin Michlmayr wrote: What do you expect size of compressed initrd, to be? Good, if you still need help contact me. No, that looks strange for me too. Probably one of default parameters got vanished. You may invoke "rcvr" start recovery procedure or alternately invoke "resetenv; reset;" to restore uBoot defaults. Hope "resetenv" is implemented in your version of uBoot. Cheers. |
|
|
Re: HP mv2120 support in Orion treeMarc Singer wrote: What do you mean by multipart? Glued linux+initrd?On Wed, Jun 11, 2008 at 12:55:25AM +0300, Eugene San wrote: bootm can accept 2 parameters first for uImage and second for uInitrd. You may use e2fsload to get uInitrd and uImage from disk and the use bootm to start. |
|
|
Re: HP mv2120 support in Orion treeOn Wed, Jun 11, 2008 at 01:41:34AM +0300, Eugene San wrote:
> What do you mean by multipart? Glued linux+initrd? > bootm can accept 2 parameters first for uImage and second for uInitrd. > You may use e2fsload to get uInitrd and uImage from disk and the use > bootm to start. There is a uImage type called multi. It's type number 4. It can store more than one sub-image in a single wrapper. -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion treeOn Wed, Jun 11, 2008 at 01:18:35AM +0300, Eugene San wrote:
>> I believe we're going to have to generate a uImage to get the system >> to boot without replacing uBoot in flash. Sure. We should be able to >> use the same kernel on all machines as long as we can perform a >> post-install hook to cope with the initramfs binding, or whatever. >> > Do you think of single initrd or several for each machine? > What do you expect size of compressed initrd, to be? I don't really know since I'm not going to build them myself. I believe that the Debian installer starts with a single ramdisk rootfs. It loads compoenents from the network and installs the same way. The initrd's for the current Debian release are about 3.5MiB. The Debian installer images for the NSLU2 are about 5 MiB, IIRC. >> >> Eugene, have you ever seen this behavior? >> > No, that looks strange for me too. Probably one of default parameters > got vanished. > You may invoke "rcvr" start recovery procedure or alternately invoke > "resetenv; reset;" to restore uBoot defaults. > Hope "resetenv" is implemented in your version of uBoot. Good tip. I'll try it. -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion treeOn Wed, Jun 11, 2008 at 01:18:35AM +0300, Eugene San wrote:
>> Eugene, have you ever seen this behavior? >> > No, that looks strange for me too. Probably one of default parameters > got vanished. > You may invoke "rcvr" start recovery procedure or alternately invoke > "resetenv; reset;" to restore uBoot defaults. > Hope "resetenv" is implemented in your version of uBoot. So, there is such a command. Using it erases my serial number and MAC address. Fortunately, I saved beforehand. I still see this odd behavior. If I put the device into the recovery mode (hold reset and power-on) and then detach the power supply, it is likely to not start the recover mode next time. Here is the before and after. Mostly benign, but I haven't look into what all of these mean. 1c1 < BOOT_MODE=normal --- > BOOT_MODE=runin 8,9c8 < bootargs_root=root=/dev/nfs rw console=ttyS0,115200 < bootcmd=bootext2 0,1:1,2 0x400000 /boot/uImage /dev/sda /dev/sdb --- > bootcmd=bootext2 0,1:1,2 $(loadAddr) /boot/$(image_name) /dev/sda /dev/sdb; 22c21 < ethaddr=00:0a:e4:83:a5:71 --- > ethaddr=00:00:00:00:51:81 29d27 < mfgtest_state=final_tested_ok 35,36c33,34 < runintime=13000 < serialNo=5561n01d01g72800061j0sb --- > runintime=14400 > serialNo=AS100352999999 44c42 < Environment size: 1041/4092 bytes --- > Environment size: 960/4092 bytes -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion tree* Marc Singer <elf@...> [2008-06-10 12:00]:
> > My answers are inline below (but maybe we should move this discussion > > to debian-arm for all to see?): > Good plan. Just to provide some background: we're discussing some things that are needed to add Debian support to HP's mv2120 NAS device. As far as I can see, the following items are needed to add support:we need to find solutions for the following - make a mv2120 patch for 2.6.26, i.e. backport the patch from Marvell's git tree to plain 2.6.26. I asked Sylver Bruneau whether he can help with this. - figure out how the rescue mode works and how to construct a rescue image that the device can boot: it seems Eugene San has figured out most or all of this already. - write a server for Linux that can serve these rescue images: I think Marc Singer was looking into this (?). - figure out the best way to make one image that contains the kernel and ramdisk: Marc had some ideas about this. - add a check to partman that ensures that sda1 is an ext2/ext3 partition that is mounted on either /boot or /. This one is easy. -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion treeOn Sun, Jun 15, 2008 at 12:18:43PM +0200, Martin Michlmayr wrote:
> * Marc Singer <elf@...> [2008-06-10 12:00]: > > > My answers are inline below (but maybe we should move this discussion > > > to debian-arm for all to see?): > > Good plan. > > Just to provide some background: we're discussing some things that are > needed to add Debian support to HP's mv2120 NAS device. > > - figure out how the rescue mode works and how to construct a rescue > image that the device can boot: it seems Eugene San has figured out > most or all of this already. > > - write a server for Linux that can serve these rescue images: I > think Marc Singer was looking into this (?). I've figured out these last two; I have a program that serves the images. One hitch I'm encountering is that I'm unable to enter the rescue mode by holding the rest button...any more. It used to work. I'm going to do a little hardware debugging to see if there is something wrong with the button. If I'm not the only person with this problem, we have have to figure out an alternative. -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion treeOn Sun, Jun 15, 2008 at 12:18:43PM +0200, Martin Michlmayr wrote:
> - figure out the best way to make one image that contains the kernel and > ramdisk: Marc had some ideas about this. I've done a quick refresh on initramfs. It looks like the only way to get the kernel to auto-load the rootfs without passing initrd_start address is to link the initramfs into the kernel. So, either 1) we relink the kernel image with an initramfs image--may not be too terrible--which means we wouldn't have to do anything to the boot process or 2) we see if we can get uboot multi-images to do the trick. or 3) we do the normal thing of appending an initrd (of some sort) to the kernel, wrap the whole kit into a single uImage, and use a kernel shim to fixup the kernel arguments to include ATAGS for the ramdisk image. The real trouble with 1 is that we need the ELF image of the kernel to do the relink. I don't see this being available and it looks like the initramfs is linked into the middle of the kernel, so some shenanigans with the zImage and the link map are probably out of the question. It looks like there is multi-image support in the uboot as shipped. We'll have to test it. Martin, how could I generate such a rootfs? I don't really care if the FS starts the installer. I just want to see that the kernel can mount it. -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: HP mv2120 support in Orion tree* Marc Singer <elf@...> [2008-06-17 11:46]:
> It looks like there is multi-image support in the uboot as shipped. > We'll have to test it. Martin, how could I generate such a rootfs? I > don't really care if the FS starts the installer. I just want to see > that the kernel can mount it. If you just need a random d-i ramdisk for testing, you can grab http://merkel.debian.org/~tbm/tmp/orion/qnap/ts-209/initrd.gz -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to debian-arm-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
| Free Forum Powered by Nabble | Forum Help |