[IMAGE] A13(-WIFI) Debian (now Ubuntu) + xfce flashable (Updated: 08 Mar: R18)

Started by jwischka, December 17, 2012, 06:36:15 AM

Previous topic - Next topic

jwischka

You'll probably need to recompile the whole kernel. You can also grab my latest (beta) image, which has a 3.4.43 kernel (with your driver built in.)

pongo

I already tried to recompile the whole kernel, but it failed.
I will try your new image.

Thanks

pongo

Another thing: I do not understand why my compilation failed, but you succeded.
These are my steps:

~$ sudo apt-get install build-essential git u-boot-tools ccache zlib1g-dev gawk bison flex gettext uuid-dev libusb-1.0-0-dev uboot-mkimage pkg-config libncurses5-dev
~$ sudo apt-get install gcc-arm-linux-gnueabihf
~$ git clone https://github.com/linux-sunxi/linux-sunxi.git
~$ cd linux-sunxi
~/linux-sunxi$ git checkout sunxi-3.4
~/linux-sunxi$ cp ../config-video-r18 .config
~/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
~/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage


Finally I got


  ...
  CC      drivers/spi/spi_sunxi.o
In file included from arch/arm/mach-sun5i/include/mach/gpio.h:22:0,
                 from drivers/spi/spi_sunxi.c:27:
include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
include/asm-generic/gpio.h:218:2: error: implicit declaration of function '__gpio_get_value' [-Werror=implicit-function-declaration]
include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
include/asm-generic/gpio.h:224:2: error: implicit declaration of function '__gpio_set_value' [-Werror=implicit-function-declaration]
drivers/spi/spi_sunxi.c: In function 'spi_sunxi_register_spidev':
drivers/spi/spi_sunxi.c:1836:2: error: implicit declaration of function 'gpio_request' [-Werror=implicit-function-declaration]
drivers/spi/spi_sunxi.c:1837:3: error: implicit declaration of function '__gpio_to_irq' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [drivers/spi/spi_sunxi.o] Error 1
make[1]: *** [drivers/spi] Error 2
make: *** [drivers] Error 2


PS: I think that the driver is in branch wip/sunxi-3.4/rtl8188eu

jwischka


pongo

Disabling SPI I compiled successfully kernel using your .config R19-beta.
Thanks

SlyCom

Amazing! This is the only one image which works. Thank you.

I'm having a question. How I can configure the WiFi?

jwischka

Quote from: SlyCom on July 11, 2013, 11:51:27 AM
Amazing! This is the only one image which works. Thank you.

I'm having a question. How I can configure the WiFi?

Edit the /etc/network/interfaces file.

SlyCom


pongo

Network

root@ubuntu:~# wpa_passphrase SSID password >> /etc/wpa_supplicant/wpa_supplicant.conf
olinuxino@ubuntu:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan1
iface wlan1 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan2
iface wlan2 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan3
iface wlan3 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf



Java
http://linux-sunxi.org/Oracle_Java

jwischka

Quote from: SlyCom on July 11, 2013, 03:32:25 PM
Thanks a lot!

Is it possible to install java runtime?

You can install Java by:

sudo apt-get update
sudo apt-get install default-jre

SlyCom

Thanks!

I wrote small java application on my Win machine with RXTX library for (serial ports). Now I'd like to move the generated JAR file to my Olinuxino. How I can do this???

P.S.
I'm not sure but I've recently installed 'librxtx-java' maybe it would help?

jwischka

Quote from: SlyCom on July 12, 2013, 07:10:31 PM
Thanks!

I wrote small java application on my Win machine with RXTX library for (serial ports). Now I'd like to move the generated JAR file to my Olinuxino. How I can do this???

P.S.
I'm not sure but I've recently installed 'librxtx-java' maybe it would help?

Use filezilla to sftp it.

SlyCom

It works once again. Thanks!

Sorry but I'm having another question. I have USB=>serial. lsusb command shows it as CP210x UART bridge but it doesn't appears if I run dmesg command. How I can configure the device to work properly?

jwischka

Not sure. Are you seeing an error message, or does it appear in /dev?

SlyCom

No error messages. I've got "usb 2-1.2.2: new full-speed USB device number 7 using sw-ehci" and no ttUSB available in /dev :(