[linux-sh:03267] Re: Regarding bootloader
Rahul Chaturvedi <[email protected]> Wed, 16 Jun 2004 20:59:44 -0700 (PDT)
| Newsgroups | gmane.linux.ports.sh.general,gmane.linux.ports.sh.devel |
|---|---|
| Message-ID | <[email protected]> |
I am replying to this in lieu of your other mail also. So, let me describe what you need to do to get a working uClinux image working on this board. At the moment, there is no rom boot option for uClinux for this board, so if you have a snapgear distribution, instead of building the kernel directly (running make in the linux-2.4.x directory), build the full image (run make ARCH=sh CROSS_COMPILE=sh-linux- in the uClinux-dist directory - Remember to run menuconfig first). This will compile the kernel for you AND generate the romfs image. This also concatenates the two images to have one full runnable image for the board. Now, load this image onto the board with l 0 or le 0. Currently, if you just go g 8c002000, your kernel should boot up. This isn't desirable though because you'll need to reload your image after you reboot. So, well there are a few issues here. Firstly, my image seems to be overwriting parts of my ROM, so I would suggest running this kernel with the ROM write protect switch enabled (on the BigSurIV board its switch 3 on the S1 switch). Secondly, I am using sh-ipl. sh-ipl, doesn't load the kernel quite where it expects it to be loaded. It also only copies 2MB of data (if your image is bigger, you'll have a problem with that). So I'd suggest making the following changes to sh-ipl. a.) Change the target address of the copy to 8C001000 (or AC001000, its the same thign). b.) Change the amount of data to be copied to larger than your image size Then first load sh-ipl and then program it to ROM location 0 (just do p 0) Then load the kernel. Write this to offset 100000 into the rom (p 100000). This will ensure that your kernel is now where sh-ipl expects it. Then simply switch to booting from ROM and hit the b key (if you're using sh-ipl). This is my experience with sh-ipl, if you're using any other boot loaders, your mileage may vary. Good luck. --- R Vijay <[email protected]> wrote: > Hi Everyone, > > I am having problem with building up the bootloader > for MS7751SE01 board. I built redboot which seems > good, and should work but i couldnt find the image > if it, which can be loaded on target system. I > tried sh-boot but its giving compiling error, can > anyone help me to get the precompiled stuff for > this? I am done with kernel compiling for both > versions i.e. 2.4 and 2.6 > > Thanks in advance > regards, > R. > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail