LE-362 SBC with Snapgear

LE-362 SBC with Snapgear

Post by GoodLu » Sat, 04 Sep 2004 13:56:56



Hi Folks,

I've got a LE-362 SBC. It has VIA embedded Eden CPU which is PIII
compatible. To build an embedded linux image, I started with SnapGear.
I got the latest tool chains and source code. For build configuration,
since there's no "VIA/embedded Eden" option in the "vendor/product
selections", I select "VIA/EPIA". I also selected defaults for all
other settings. However, during the make, it complained "invalid
register variables" in the "flashloader.c" file. I went back to
configuration and disabled the "flashloader" feature and rebuit. This
time, it complained about "as86" command for "lilo" is not found.
isn't as86 the assembler which should come with the tool chains?
Does anyone know what are the right steps/configurations for my case?

many thanks!

 
 
 

LE-362 SBC with Snapgear

Post by Damion de Sot » Wed, 08 Sep 2004 13:52:49


Quote:> I've got a LE-36 SBC. It has VIA embedded Eden CPU which is PIII
> compatible. To build an embedded linux image, I started with SnapGear.
> I got the latest tool chains and source code. For build configuration,
> since there's no "VIA/embedded Eden" option in the "vendor/product
> selections", I select "VIA/EPIA".

Yes, this should be good enough. You will probabaly need to tweak
some of the other kernel configs settings though, for the differences
between the LE-362 hardware and the real Epia board.

Quote:> I also selected defaults for all
> other settings. However, during the make, it complained "invalid
> register variables" in the "flashloader.c" file. I went back to
> configuration and disabled the "flashloader" feature and rebuit.

The default Via/EPIA config option for
# CONFIG_USER_BOOTTOOLS_FLASHLOADER is not set
is disabled.  You may want to investigate how this got turned on, and
make sure all the other options are set to the real defaults.

Quote:> This
> time, it complained about "as86" command for "lilo" is not found.
> isn't as86 the assembler which should come with the tool chains?
> Does anyone know what are the right steps/configurations for my case?

as86, and a small number of other very-common or rarely-used tools
aren't included in the snapgear toolchains.
you can just use the normal as86 from your host system.

regards,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SnapGear - A *Guard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.veryComputer.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.veryComputer.com/  ---

 
 
 

LE-362 SBC with Snapgear

Post by GoodLu » Thu, 09 Sep 2004 14:31:44


Thanks for the info, Damion.

I could go further by disabling the "flashloader" option and
installing the dev86 package obtained from RedHat (I'm running the
Fedora Core 2 as the host). But now I've got this error:
"
...
make[2]: Entering directory `/usr/local/snapgear/user/mtd-utils'
gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c
compr_rtime.c:27:27: linux/string.h: No such file or directory
...
"
The build process had been using "i386-linux-gcc" before this error,
why did it switch to "gcc" all of a sudden? Also, it seems looking at
a wrong folder for the string.h file. Any idea why this happened?

Thanks again!


Quote:> > I've got a LE-36 SBC. It has VIA embedded Eden CPU which is PIII
> > compatible. To build an embedded linux image, I started with SnapGear.
> > I got the latest tool chains and source code. For build configuration,
> > since there's no "VIA/embedded Eden" option in the "vendor/product
> > selections", I select "VIA/EPIA".
> Yes, this should be good enough. You will probabaly need to tweak
> some of the other kernel configs settings though, for the differences
> between the LE-362 hardware and the real Epia board.

> > I also selected defaults for all
> > other settings. However, during the make, it complained "invalid
> > register variables" in the "flashloader.c" file. I went back to
> > configuration and disabled the "flashloader" feature and rebuit.
> The default Via/EPIA config option for
> # CONFIG_USER_BOOTTOOLS_FLASHLOADER is not set
> is disabled.  You may want to investigate how this got turned on, and
> make sure all the other options are set to the real defaults.

> > This
> > time, it complained about "as86" command for "lilo" is not found.
> > isn't as86 the assembler which should come with the tool chains?
> > Does anyone know what are the right steps/configurations for my case?
> as86, and a small number of other very-common or rarely-used tools
> aren't included in the snapgear toolchains.
> you can just use the normal as86 from your host system.

> regards,

 
 
 

LE-362 SBC with Snapgear

Post by Damion de Sot » Thu, 09 Sep 2004 15:50:52



> make[2]: Entering directory `/usr/local/snapgear/user/mtd-utils'
> gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c
> compr_rtime.c:27:27: linux/string.h: No such file or directory
> ...
> "
> The build process had been using "i386-linux-gcc" before this error,
> why did it switch to "gcc" all of a sudden? Also, it seems looking at
> a wrong folder for the string.h file. Any idea why this happened?

It switched to gcc because it's building the host mtd tools.
depending on what kernel/distro your host is running, you'll probably
get those errors.
easiest way to fix is to edit compr_rtime.c and remove
all the #include <linux/*> lines,  and replace them with:

#include <stdio.h>
#include <string.h>
#include <stdint.h>

should then compile easily.

regards,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SnapGear - A *Guard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.veryComputer.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.veryComputer.com/  ---

 
 
 

LE-362 SBC with Snapgear

Post by GoodLu » Fri, 10 Sep 2004 13:53:36


Now I could build the romfs.tar.gz image. I'll start to load the
images onto LE-362 board. I'll keep posting here on my progress.

Thanks, Damion, for wonderful help!



> > make[2]: Entering directory `/usr/local/snapgear/user/mtd-utils'
> > gcc -I/usr/include -c -o build/compr_rtime.o compr_rtime.c
> > compr_rtime.c:27:27: linux/string.h: No such file or directory
> > ...
> > "
> > The build process had been using "i386-linux-gcc" before this error,
> > why did it switch to "gcc" all of a sudden? Also, it seems looking at
> > a wrong folder for the string.h file. Any idea why this happened?
> It switched to gcc because it's building the host mtd tools.
> depending on what kernel/distro your host is running, you'll probably
> get those errors.
> easiest way to fix is to edit compr_rtime.c and remove
> all the #include <linux/*> lines,  and replace them with:

> #include <stdio.h>
> #include <string.h>
> #include <stdint.h>

> should then compile easily.

> regards,

 
 
 

1. Setting up S3 Trio3D/2X (362) Card from Mandrake 6.1

Anyone know how to get the above metioned card to work in 1024x768 (
high or true color)?

Tried to configure this card already but it runs so slowly that its
almost like it locks the machine.

Any advice, pointers and suggestions would be greatly appreciated.

Regards,
Brandon Johnson

2. Logitec Busmouse problems

3. S3 trio 2x agp 362 suse 6.2

4. 'find' and 'rm' problems

5. Reading is much more interesting than TV (0362/1708)

6. PPTP

7. SnapGear firewall, ADSL router and backup ISDN router

8. error with eggdrop on 3.1

9. SnapGear Tech Bulletin - Hitachi H8 Integrated into uClinux

10. Porting Xscale Linux 2.6 (Snapgear 3.0) to IXDP425

11. Building SnapGear for x86

12. Problem in uncompress snapgear download file

13. HELP : Installing Snapgear 2.6 on a PC with Red Hat 9