Darrel Loader

74 views
Skip to first unread message

Alan

unread,
Sep 21, 2009, 5:43:50 AM9/21/09
to linuxstamp
Hi Paul,

I'm looking at converting the Linuxstamp crystal from 18.432MHz to
10MHz. Going through all the code it appears that I need to recompile
Darrel Loader, Uboot and the Kernel.

I have a couple questions.

1) Did you compile Darrel Loader? There is a copy on the FTP site. I
see from the ecbat91website they had to compile it with GCC 3.4.5, is
this what you did?

2) How did you put the Darrel Loader into the Linuxstamp

Once Darrel Loader is in I can probably get Uboot and the Kernel
sorted.

Cheers

Alan

Michael

unread,
Sep 21, 2009, 1:35:16 PM9/21/09
to linuxstamp
Hi - I have gone through the process of rebuilding things from the
ground up, and in answer to your two questions:

1) Yes, I did recompile the Darrell Loader using gcc 3.4.5. You could
probably use a more recent gcc, but there is no advantage to doing so,
and potential pitfalls.

2) The process I use to install the loader is as follows:

a) Power up the board with the usb serial interface connected to a
minicom session (115200n81).
b) You should see a sequence of CCCC... with new C characters every
second or so.
c) Hit enter a couple of times (the CCC... will stop).
d) In minicom, hit Ctrl-a-z-s to bring up the x/y/zmodem menu.
e) Select xmodem.
f) Navigate to your 'loader.bin' file or equivalent and hit the
spacebar to mark it.
g) Hit enter to start the transfer.
h) Press and release the reset button on the Linuxstamp.
i) Be ready on the enter key and hit it *twice* immediately after
the download completes (you must do this quickly before the loader
tries to auto-start).
j) Now you can select the option to program the loader to flash,
and repeat the Ctrl-a-z-s / xmodem / loader.bin / space / enter
sequence a second time.
k) When this is done, the loader is now installed in the DataFlash.

The first tricky part here is (c), which does two important things: it
assures serial-port sync on the usb interface chip, and it freezes the
built-in bootloader while you set up the initial xmodem transfer. The
second tricky part is (i), which must be done quickly at the end of
the initial transfer to stall the temporary (in-ram) copy of the
loader or you will have to start over.

- Michael

Michael

unread,
Sep 26, 2009, 10:10:49 AM9/26/09
to linuxstamp
One other minor (but essential) detail. If you have not used minicom
before, and installed it (say on Ubuntu), the xmodem support may not
be configured. Xmodem uses the command-line utility sx to send files,
and that has to be installed as well (it is part of the lrzsz
package). Type sx on a command line to see if it is installed - if
not, install the lrzsz package to get it. Then make sure minicom is
configured to use it (I think it is by default - but it does *not*
tell you when it can't find the sx utility, it just hangs!).

- Michael

Miguel Wisintainer

unread,
Apr 29, 2010, 11:04:50 PM4/29/10
to linux...@googlegroups.com
Did someone got sucess to download the KERNEL from PENDRIVE USB ?
 
Miguel
 



Veja todos os seus e-mails de diferentes contas com apenas um login. Veja como.

--
You received this message because you are subscribed to the Google Groups "linuxstamp" group.
To post to this group, send email to linux...@googlegroups.com.
To unsubscribe from this group, send email to linuxstamp+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/linuxstamp?hl=en.

Paul Thomas

unread,
May 3, 2010, 12:29:39 AM5/3/10
to linux...@googlegroups.com
I've run the filesystem off of a USB drive, but never loaded a kernel that way.

thanks,
Paul

Flavio Alves

unread,
May 3, 2010, 8:29:13 AM5/3/10
to linux...@googlegroups.com
Hello,

The bootloader must be prepared to load the kernel from the USB.

As far as I know, the u-boot version used by linuxstamp (1.1.6) does not have support for this kind of boot.

Best regards,

Flavio

Miguel Wisintainer

unread,
May 6, 2010, 12:23:32 PM5/6/10
to linux...@googlegroups.com
Dear
 
May someone execute the PRINTENV command for me ?
 
I want to see the bootargs and bootcmd arguments, for boot from MMC/SD card.
 
Miguel
 



EM 2009 ACONTECERAM 250.362 FRAUDES NA INTERNET. CLIQUE PARA LER DICAS DE SEGURANÇA.

Miguel Wisintainer

unread,
May 6, 2010, 12:23:53 PM5/6/10
to linux...@googlegroups.com
Dear
 
May someone execute the PRINTENV command for me ?
 
I want to see the bootargs and bootcmd arguments, for boot from MMC/SD card.
 
Miguel
 



POR ANO SÃO ENCONTRADOS 609.000 SITES QUE ROUBAM DADOS. VEJA COMO SE PROTEGER AQUI.

Kevin Constantine

unread,
May 6, 2010, 12:52:53 PM5/6/10
to linux...@googlegroups.com
Hi Miguel-

This is the printout from the original Linuxstamp. Not sure if
Linuxstamp 2 is any different.

bootdelay=2
baudrate=115200
serverip=192.168.0.128
rootpath="/home/at91/rootfs"
netmask=255.255.255.0
bootfile="ecb_at91.img"
loadaddr=0x20200000
ipaddr=192.168.0.51
bootargs=mem=32M root=/dev/mmcblk0p1 ip=192.168.0.51
console=ttyS0,115200n8 rootdelay=4
bootcmd=bootm C0021840
ethaddr=ac:de:48:00:00:01
stdin=serial
stdout=serial
stderr=serial

-kevin

Miguel Wisintainer wrote:
> Dear
>
> May someone execute the PRINTENV command for me ?
>
> I want to see the bootargs and bootcmd arguments, for boot from MMC/SD card.
>
> Miguel
>
>
>
> ------------------------------------------------------------------------
> EM 2009 ACONTECERAM 250.362 FRAUDES NA INTERNET. CLIQUE PARA LER DICAS
> DE SEGURANÇA.
> <http://www.microsoft.com/brasil/windows/internet-explorer/features/navegue.aspx?tabid=1&catid=1&WT.mc_id=1565>

Miguel Wisintainer

unread,
May 6, 2010, 1:08:08 PM5/6/10
to linux...@googlegroups.com
thanks for help
 
Is giving
 
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 
Miguel
 
> Date: Thu, 6 May 2010 09:52:53 -0700
> From: kevin.co...@gmail.com
> To: linux...@googlegroups.com
> Subject: Re: PRINTENV
EM 2009 ACONTECERAM 250.362 FRAUDES NA INTERNET. CLIQUE PARA LER DICAS DE SEGURANÇA.

--

Miguel Wisintainer

unread,
May 6, 2010, 2:27:49 PM5/6/10
to linux...@googlegroups.com
VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

Looks that the MMC/SD was incorrectly formated and is not finding the mmcblk0p1 in /DEV

From: tcpi...@hotmail.com
To: linux...@googlegroups.com
Subject: RE: PRINTENV
Date: Thu, 6 May 2010 17:08:08 +0000


thanks for help
 
Is giving
 
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 
Miguel
 
> Date: Thu, 6 May 2010 09:52:53 -0700
> From: kevin.co...@gmail.com
> To: linux...@googlegroups.com
> Subject: Re: PRINTENV
>
EM 2009 ACONTECERAM 250.362 FRAUDES NA INTERNET. CLIQUE PARA LER DICAS DE SEGURANÇA.

QUER NAVERGAR COM MAIS SEGURANÇA? VEJA AS DICAS DO INTERNET EXPLORER 8.
Reply all
Reply to author
Forward
0 new messages