[Arm-netbook] eoma68-a20 ethernet testing

joem joem at martindale-electric.co.uk
Wed Sep 4 15:03:19 BST 2013


> > sunxi-tools don't work at the moment:
> >
> > gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/
> > `pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs
> > libusb-1.0`
> > Package libusb-1.0 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `libusb-1.0.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'libusb-1.0' found
> > Package libusb-1.0 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `libusb-1.0.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'libusb-1.0' found
> 
>  ok, then apt-get install libusb-1.0-dev  (ok on debian it's libusb-1.0-0-dev)
> 
>  i'll update the page accordingly.

100%


uboot and sunxi-tools now cross compiles on ubuntu 12.04.3:

  # ARM with floating point support cross compiler install
  sudo apt-get install gcc-4.4-arm-linux-gnueabihf
  cd /usr/bin
  sudo ln -s arm-linux-gnueabihf-gcc-4.4 arm-linux-gnueabihf-gcc
  cd ~

  # download and cross compile uboot
  git clone https://github.com/linux-sunxi/u-boot-sunxi.git
  cd u-boot-sunxi
  make CROSS_COMPILE=arm-linux-gnueabihf- EOMA68_A20_FEL
  cd ..
  
  # download and cross compile sunxi-tools
  sudo apt-get install libusb-1.0.0-dev
  git clone https://github.com/linux-sunxi/sunxi-tools.git
  cd sunxi-tools
  make
  cd ..


sunxi-tools gets built with a minor ignorable warning:
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/
`pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs
libusb-1.0`
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/
-o pio pio.c 
pio.c: In function ‘do_command’:
pio.c:313:57: warning: unused parameter ‘argc’ [-Wunused-parameter]
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/
-o nand-part nand-part.c 
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/
-o nand-part-a20 nand-part.c -D A20 




More information about the arm-netbook mailing list