WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: need Allwinner tools or sunxi-tools to flash img files on device  (Read 6980 times)

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
need Allwinner tools or sunxi-tools to flash img files on device
« on: February 14, 2016, 12:05:37 PM »
 ;) ;) ;) ;) ;) ;)
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #1 on: February 14, 2016, 10:11:36 PM »
1: I'm really lazy to start with,I will  attempt to overgo laziness later..

This is not likely to encourage others to build sunxi-tools for you  :P

Code: [Select]
$ tce-load -i compiletc git libusb-dev
$ git clone https://github.com/linux-sunxi/sunxi-tools
$ cd sunxi-tools
$ make
$ sudo make install

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #2 on: February 17, 2016, 03:17:13 PM »
When compiling awusb.c with make it gives an error "No rule to make target 'default' stop ....".
Do i need dkms to build awusb module?
« Last Edit: February 17, 2016, 03:22:46 PM by Dualityonme »
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #3 on: February 17, 2016, 09:04:38 PM »
I'd guess that you need to prepare the kernel source

Edit:
Code: [Select]
$ tce-load -i compiletc git perl5 bash ncurses-dev bc advcomp

$ tar xf linux-4.2.9-patched.tar.xz
$ cd linux-4.2.9
$ make mrproper
$ cp config-4.2.9-tinycore .config
$ make oldconfig

$ make prepare
$ make modules_prepare

$ gunzip Module.symvers-4.2.9-tinycore.gz
$ cp Module.symvers-4.2.9-tinycore Module.symvers
$ make SUBDIRS=scripts/mod

$ cd /lib/modules/4.2.9-tinycore
$ sudo ln -s /usr/src/linux-4.2.9 build

$ git clone https://github.com/linux-sunxi/sunxi-livesuite.git
$ cd sunxi-livesuite/awusb

$ make
$ gzip awusb.ko
$ advdef -z4 awusb.ko.gz
« Last Edit: February 17, 2016, 09:25:39 PM by Juanito »

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #4 on: February 20, 2016, 01:04:59 AM »
And what about Livesuit.it only gives errors like wrong architecture, and I can't get it's source to compile anywhere! ??? ??? :P
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #5 on: February 20, 2016, 01:08:11 AM »
What errors did you get when trying to compile it?

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #6 on: February 20, 2016, 01:20:16 AM »
I used this link as instructions ' http://linux-sunxi.org/LiveSuit ' but tiny core doesn't have dims in any of repos,maybe using dCore will help get Livesuite(the ease of flashing to NAND really fast when modifying stock img) working on low hardware,at last  I read it has Debian and Ubuntu packages compatibility.


 
wrong architecture
'Core doesn't supported' or 'unknown architecture i586'
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #7 on: February 20, 2016, 03:11:49 AM »
What I see is:
Code: [Select]
$ ./LiveSuit.sh
Starting x86/LiveSuit.

x86/LiveSuit: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory
..which is because tinycore does not have a nas extension.

If I make my machine look like an i486, then I get:
Code: [Select]
$ ./LiveSuit.sh
Error: unknown architecture i486

..so this would indicate the minimum hardware for LiveSuit (not tinycore) is i686, exactly what machine are you trying to use?


Edit: As a hack, if you copy libaudio* from the debian package libaudio2 into the filesystem and load the qt-4.x-base extension, LiveSuit will run on tinycore as long as you have at least an i686.
« Last Edit: February 20, 2016, 03:49:28 AM by Juanito »

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #8 on: February 20, 2016, 04:14:52 AM »
What I see is:
Code: [Select]
$ ./LiveSuit.sh
Starting x86/LiveSuit.

x86/LiveSuit: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory
..which is because tinycore does not have a nas extension.

If I make my machine look like an i486, then I get:
Code: [Select]
$ ./LiveSuit.sh
Error: unknown architecture i486

..so this would indicate the minimum hardware for LiveSuit (not tinycore) is i686, exactly what machine are you trying to use?


Edit: As a hack, if you copy libaudio* from the debian package libaudio2 into the filesystem and load the qt-4.x-base extension, LiveSuit will run on tinycore as long as you have at least an i686.
`uname -a` gives i586 as output but maybe it's still possible to compile Livesuit on that too ( i use really,not-old-but-very-low-n-cheap,AMD geode-based netbook as main PC.Don't tell me to buy new one!!)
« Last Edit: February 20, 2016, 04:16:46 AM by Dualityonme »
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #9 on: February 20, 2016, 04:20:19 AM »
The only thing you can compile is the kernel module - the rest is a collection of pre-built binaries.

If you're lucky, only the ./LiveSuit.sh check looks for an i686 - what happens when you try the LiveSuit binary in the x86 folder?

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #10 on: February 21, 2016, 04:12:00 AM »
The only thing you can compile is the kernel module - the rest is a collection of pre-built binaries.

If you're lucky, only the ./LiveSuit.sh check looks for an i686 - what happens when you try the LiveSuit binary in the x86 folder?
the same,doesn't work!
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #11 on: February 21, 2016, 04:21:30 AM »
"doesn't work" doesn't make it easy to help you - how doesn't it work? What error messages did you get? Did you load the qt-4.x-base extension?

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #12 on: February 21, 2016, 04:34:14 AM »
is it possible to remake Livesuit for i486 or even i386 Linux?? >:(
What doesn't kill you...will make you dead next time!

Offline Dualityonme

  • Full Member
  • ***
  • Posts: 112
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #13 on: February 21, 2016, 04:59:39 AM »
i got Livesuit gui working but i need awusb drivers which always fail on compilation. :'( :'(
What doesn't kill you...will make you dead next time!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: need Allwinner tools or sunxi-tools to flash img files on device
« Reply #14 on: February 21, 2016, 05:03:28 AM »
Again, can you give details of what "always fail on compilation" actually means (i.e. the exact error message)?

Did you follow the instructions I gave you several posts ago?