yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] Quinny899:
Looking at what I just wrote in the OP, it would be much easier :S
[Gen9 Android Development] trevd:
Okay , Hold off updating the OP , I'll have a look later on.... I'll get the going back to stock instructions at the same time :D
[Gen9 Android Development] therbom:
Current bugs (A101S):

Booting is a bit complicated (at least for me, when coming from stock):

Rebooting from cm-10.1 will bring you back to cm-10.1

Rebooting from CWM will bring you to cm-10.1

Shutting down and powering up will bring you to CWM. From there you can reboot normally

Rebooting from Archos recovery will bring you to CWM. From there you can reboot normally

Battery level indication is unreliable. The status remains at 50% or 75% for a while. When you charge your tablet for the first time, your tablet will charge but the indication won't be updated. When you unplug your tablet and plug it in back, the tablet won't charge anymore (or it doesn't display that it's charging) and you need to reboot. I'm currently just charging in Archos recovery as then I know it's actually charging. ADB works when you connect your tablet to your pc when you have previously unplugged your tablet. You also have a nice notification (if enabled), so USB connection works. Attached is logcat/dmesg output.

Battery usage data isn't available

[MENTION=3563640]Quinny899[/MENTION], you might want put in the OP that only SSD models (A80S/A101S) are suppported.
[Gen9 Android Development] trevd:
Have you remove the stock android then? I would recommend it. The Tablet at the moment will always start in recovery mode first, it's set to do that by default, It greatly speeds up the testing process especially when altering the Boot Process. I expect it to change at some point in the future , Maybe a nice splash screen with boot option timeout!

Thanks for the logs, Now you mention it, I recall having strange reports from the 101 Battery, Sometimes it even reported -1%

Anyway Any chance of grabbing the dmesg after a plug/unplug cycle, Also can I confirm what model tablet do you have, I think I read somewhere there's 10+ variations ( I could just have imagined that tho LOL :D )

On that note, to the folks with the HDD Versions, If anyone out there knows a bit of linux and is comfortable with adb then we can give it a shot at getting it going on those models.
[Gen9 Android Development] mrbr0wn:
there is some problem but i can't spot which one. When i do adb push archos.ext4.update /data/local/archos.ext4 and then i reboot, i just have black screen... then if i go into recovery and i try to flash kernel and zImage, and i reboot, i can boot CWR, and even flashing the zip, i do not have any change... :/

dunno how, managed to "boot" ..but..

"E/cutils ( 486): Failed to mkdir(/storage/emulated/0/Android/obb): Permission denied

E/dalvikvm( 486): cannot mountExternalStorage(): Permission denied

E/dalvikvm( 486): VM aborting

F/libc ( 486): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 486 (zygote)

I/DEBUG ( 113): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 113): Build fingerprint: 'Android/cm_archos_g9/archos_g9:4.2.2/JDQ39E/eng.android.20130427.153152:userdebug/test-keys'

I/DEBUG ( 113): Revision: '5'

"

[A101G9 sd version]
[Gen9 Android Development] trevd:
Hi While in recovery mode use adb to check the ext4 image exists

adb shell ls -l /data/local/archos.ext4

if not push the image down while booted in CWM Recovery
[Gen9 Android Development] mrbr0wn:
already checked, i have te image...but if i boot with that image in /data/local/, the tablet won't boot, remaining at black screen... :confused:
[Gen9 Android Development] Quinny899:
Is this not the wipe media thing? Where you have to delete and re-add the media folder?
[Gen9 Android Development] mrbr0wn:
1) thanks for your replies :)

2) dunno what u are talking about :)

3) meanwhile, trying to have the all thing working, i managed the tablet not to boot anymore, so atm my tablet is capable running CWM and anything else ^_^
[Gen9 Android Development] Quinny899:
Try going to a pc, running adb shell and running the following code:

adb shell rm -r -f /data/media

and then

adb shell mkdir /data/media

Then reboot

THIS WILL WIPE YOUR INTERNAL STORAGE!
[Gen9 Android Development] trevd:
and then flash this update-a101s-test.zip - 177.10 MB

[MENTION=3563640]Quinny899[/MENTION] I've just read those instructions.... I'm confused LOL :D Give me a couple of hours and I'll make some updates that are more succinct.
[Gen9 Android Development] mrbr0wn:
Oh, ok, that worked :D
[Gen9 Android Development] Quinny899:
Suspected as much ;)
[Gen9 Android Development] mrbr0wn:
Ok, where is the trick? It's pretty fast!!!!! :cyclops: :cowboy:
[Gen9 Android Development] Quinny899:
trevd is the magician behind that, I was pleasantly surprised too :D
[Gen9 Android Development] mrbr0wn:
:good: :fingers-crossed: well, i think that the battery problem it's really a problem, now, but all the remaining stuff it's working good :)
[Gen9 Android Development] Quallenauge:
Seems that removing the avos daemon, bionic from linaro and native system gives a extra boost over the plain linaro builds, which I have used. Next week I really should try out these features :)
[Gen9 Android Development] trevd:
Can't forget [MENTION=4636351]Quallenauge[/MENTION] for his work with the Kernel, I think [MENTION=3555487]stevemp[/MENTION] put a good shift in as well.

I only trimmed the edges and deleted the archos bloatware, there might be more to be had out of it though, there a couple more Linaro Optimizations ( dalvik-vm etc ) to try and we've got a ton of debug code in there at the moment.

If anyone feels the need to run benchmarks run this https://code.google.com/p/0xbench/, should be on the play store as 0xbench (that's zero not "o" ;) ) instead of that ridiculous quandrant rubbish that the kids all love. Just for kicks I'm going to run it against the stock firmware while I've got my tablet reformatted :laugh:

[MENTION=2557524]mrbr0wn[/MENTION] can you unplug and plug the usb cable in and can you also do that with a wall socket, if possible then grab the logs ( logcat/dmesg ) for us. That might give us a starter to tackle the battery issue.

Thanks
[Gen9 Android Development] mrbr0wn:
i thought to diff them and just give you the diff but then...i decided to gave you the whole logcat :)

The first is with usb cable plugged, the second is after unplug and plug again.

ATM i cannot test with a wall adapter, i'll do it as soon as i can!

oops -.- forgot to delete the SSID -.-
[Gen9 Android Development] Djirin:
I have been closely watching this thread as I want to put it on my classic 1.5ghz 512mb 101 G9.

I know that by following the instructions it will wipe the tablet. I do have 1 paid for app that I would like to keep and am not certain what will happen once I wipe the tablet and try to reinstall it.

Can anyone give me an idea what will happen?
[Gen9 Android Development] trevd:
Paid apps work fine, also you never lose access to a paid app, it's tied to your google account, :good:
[Gen9 Android Development] Djirin:
That's a relief. :laugh: I thought it was tied to an identifier or something. As I've played around with roms and noticed several 'devices' listed on Play when installing apps.

I will go about installing it later this week on a day off so I can have time to debug stuff should I do something wrong. :eek:
[Gen9 Android Development] therbom:
Battery indication works fine in build 0.1.0, so it must be due to the kernel update.
[Gen9 Android Development] Forlorn Wongraven:
Update worked flawlessy from stock to CM10.1. However you should add that in the "how-to" SDCard actually means local SDCard, took me a while to get back to stock, copy the zips and rerun the process (as adb didnt't work in CWM). Also I confirm the battery bug, jumps from 10 to 50 to 30 to 80 to 5 within 5 minutes.
[Gen9 Android Development] ladalgigi:
Hi

I follow instructions on OP. I can enter CWM, I can flash the Rom but the gapps flash hangs and I can't boot my A101s. Anyone have a solution ?

Isn't it possible and more friendly to have an aos file to update ?

Btw, good job for giving us jb on archos and thanks to all thes devs on the project.

Thanks

Envoyé depuis mon HTC Desire X avec Tapatalk
[Gen9 Android Development] Kanalcommander:
Is there an other download source for the ROM file? I am not fond of creating an account for one single download.
[Gen9 Android Development] Quinny899:
Do you not have a google account? You could just use that
[Gen9 Android Development] Kanalcommander:
Oh shame on me. Thought this login was for google+
[Gen9 Android Development] trevd:
No! It could be aliens! It's difficult to say without looking at some sort of log ( dmesg , /tmp/recovery.log might a good place to start.)

No! Are you joking? However If you've read about the last 20 posts of the thread you'd of seen that we/I am aware of the usability "problem" in the update procedure and I'm currently sorting out a much better method. Please also bear in mind that we are still developing this especially for the A101S, ( [MENTION=3563640]Quinny899[/MENTION] Perhaps you could make that a little more clear in the first posts) as none of the main devs on this have an A101 model , It's down to users giving us quality information and being proactive when things don't work properly.
[Gen9 Android Development] trevd:
Hmmm, a bit strange adb didn't kick up, is that on Windows?. I just reformatted the device from archos recovery to get back stock , That's holding vol down+power , I should probably make the labels clear in Recovery also although you can mount the external sdcard which might have given you a clue!

If you can grab some relevant logs for the battery bug, We can try and gather as much information as possible which should point us at the cause [MENTION=4636351]Quallenauge[/MENTION] Is on holiday at the moment I think, He's the kernel wizard although I'll have a cheeky look myself when I've stopped reply to posts on XDA :D LOL.
[Gen9 Android Development] stealthdave:
I was having an issue with flashing gapps as well (during the gapps flash, the progress bar would stall at 80% and then reboot back into CWM, and which point I needed to wipe and start over), but I didn't know how to get a log from CWM. The usual "adb logcat" didn't work from the CWM version of adb, so I was at a loss as to how to file a bug report. I was eventually able to get the .zip version flashed with gapps, but only after several device wipes and installing the "old-school" 0.3.0 first. For future reference, how does one get a log from CWM?

- Dave

P.S. - Now that it's installed, it's running AWESOME!!! Merci beaucoup to all involved!
[Gen9 Android Development] mrbr0wn:
HEEEELP!

Ok guys...now i really need your help... the tablet won't boot in any mode, probably 'cause of the battery gone down..yesterday i didn't noticed the tablet was not charging, because when i unplugged the cable, it said, every time, "low battery", so i assumed it can "sense" the cable, and then charge but... it seems not.

I can't power on the tablet, in any way..is there anything i can do?
[Gen9 Android Development] stealthdave:
To paraphrase a popstar; we will never, ever, ever get an aos file for a custom rom. :)

Archos digitally signs all aos files so that no one can create a custom ROM and claim that it's "official" from Archos. This is a "good thing" security-wise, even if it means a slightly less convenient method is required for custom ROMs. As stated trevd, quallange et al and Quinny899 are steadily making the process easier for the rest of us.

Patience is a virtue, as are detailed bug reports with error logs.

- Dave

---------- Post added at 04:57 PM ---------- Previous post was at 04:53 PM ----------

I had this problem before when I was on one of Surdu's ROMs, and all you can do is leave it on the charger for a long time, like 24-48 hours long. This happens when the battery gets completely drained, and unfortunately there's nothing that you can do (that I know of) other than plug it in, wait, and pray.

- Dave

Edit - You might want to try a different charging cable, too.
[Gen9 Android Development] mrbr0wn:
ok, wait, i dunno how but i managed to get it into Archos recovery...does anybody knows if it will charge, staying in that recovery?
[Gen9 Android Development] trevd:
adb shell dmesg

adb shell cat /tmp/recovery.log

That should give you at least something. There is no logcat in recovery mode, I'll try gapps myself in a bit, Just been running in stock at the moment while I work on sorting the installation procedure.
[Gen9 Android Development] shitaki:
I renamed the .7z file to archos.ext4

and I made a new folder with /data/local on the tablet and put the archos.ext4 inside and I power off and plugged in the usb cable and it just reboots like normally

Is there something I'm missing :/?
[Gen9 Android Development] Quinny899:
I changed the instructions so they're a bit better, try following them now
[Gen9 Android Development] ladalgigi:
installation

Hi

Excuse my noob questions

The 2 other files in zip - initramfs.cpio.lzo and zImage - are useless ?

What shall I do with them ?

Thanks
[Gen9 Android Development] MmegaMac:
Can you make a tuto if Coming from Official Rom (no root no SDE) Please ?

Thanks for advance !
[Gen9 Android Development] solrakk6:
Quinny899 thanks for make this possible!!

So just need hdmi and all working!!? Very good job!

This rom work fine one 80G9 200GB?!
[Gen9 Android Development] edeharo:
hi, can you explain the steps to install this build in A101S

I'm trying but I can not boot

thanks
[Gen9 Android Development] shitaki:
It's the same result :( I extracted the zip file and relabeled the archos.ext4.update but no luck still. I'm supposed to be putting this on the tablet itself right? That's what I have been doing. Hmm is it because I don't have stock rom?
[Gen9 Android Development] zando2712:
This is how I got installation to work from Stock or ICS custom firmware.

(modified OP instructions with parts of Shano56 for installing custom firmware.)

Download the latest version of the ROM from here: http://goo.im/devs/trevd, or from here if Goo is slow for you: http://d-h.st/2nG

Download the latest 4.2 gapps from here: http://goo.im/gapps

Download this wipe file: http://goo.im/devs/trevd/archosg9/cm10.1/wipe-data.zip

Copy these 3 files to /mnt/storage

Download this 7z file:

http://www.4shared.com/archive/iGRbUBQg/030.html

Extract it, and place archos.ext4.update to /mnt/storage

-Power off your device

-Boot into Archos recovery by holding the volume rocker down and pressing the power button simultaneously

-If you see "Archos Boot Menu" or something similar, select "Recovery System"

-You should now see "Archos Recovery" with the following options "No" "Reboot" "Update Firmware" "Repair System" "Format System" "Developer Edition Menu". Select "Developer Edition Menu"

-Select "Remove Android Kernel" (if the option is present, if not, skip)

-Select Flash Kernel and Initramfs

-Copy zImage and initramfs.cpio.lzo (from previously extracted file) to the drive that appears

-Restart

It should now boot CWM

Select install zip from SD card, then select the ROM zip, from /sdcard (/mnt/storage) and flash it

Now do it again, for the gapps zip you downloaded

Now do it for the wipe_data zip you downloaded

Now reboot from CWM, and your device should boot CM10.1
[Gen9 Android Development] therbom:
Download build 0.1.0 (doesn't contain the battery bug) here

Boot to stock Archos ROM. Remove contents of /data (WARNING: This will wipe everything!):

adb shell rm -rf /data/*

Unpack the contents of a101s.7z. Push archos.ext4 (or archos.ext4.update) to /data/local:

adb shell mkdir /data/local
adb push archos.ext4 /data/local
or: adb push archos.ext4.update /data/local/archos.ext4

Boot to Archos recovery. Flash initramfs.cpio.gz (or similar) and zImage.

Shutdown your tablet. Boot your tablet into Developer Mode.

You should now boot into CWM. Execute the following:

adb shell reboot_into -s sde
adb reboot android

You should now boot into cm-10.1.
[Gen9 Android Development] trevd:
Hi There,

You can you the latest version of Android, but and use the kernel (zImage) from 0.1.0 if you want. that should work.:good:
[Gen9 Android Development] therbom:
Wouldn't the kernel modules inside the system image conflict with each other, as the kernel versions are not the same?

Verstuurd van mijn ARCHOS 101G9 met Tapatalk
[Gen9 Android Development] trevd:
& copy the kernel modules aswell ;)
[Gen9 Android Development] MmegaMac:
my device restarts every time with CWM ! Grr !
[Gen9 Android Development] MmegaMac:
Bootloop on the logo CyanogenMod now !
[Gen9 Android Development] swaaye:
Within CWM the ROM install seems to go fine but the gapps install looks to cause CWM to restart. I think the data wipe works but not sure. It won't boot CM10.1 after.
[Gen9 Android Development] Quallenauge:
Just a short note from me: Mixing kernels from these versions isn't possible, because the modules are compiled against a specific kernel versions. So on loading these modules a magic version errors should occur.
[Gen9 Android Development] trevd:
Ay, I know all about Invalid magic :D you'd obviously copy the modules as well :D Any thoughts on the battery issue? I had a quick glance earlier on but I need to check what the 101 is using! Also there's a lot of stack traces in the dmesg's, I assume that you casually throwing printk's around :silly:
[Gen9 Android Development] MmegaMac:
I've retry : Stuck on bootloop. Someone have a solution ??
[Gen9 Android Development] swaaye:
I did a full format in SDE and reinstalled Archos 4.0.28.
[Gen9 Android Development] MmegaMac:
I've tried : Stock firmware boot but if i try to reinstall cm10.1 : bootloop
[Gen9 Android Development] zando2712:
I think you are looking for this.

ADB commands in CWM.

http://xdaforums.com/showpost.php?p=40812597&postcount=255

and then flash the cm 10.1 .zip
[Gen9 Android Development] edeharo:
following your instructions I managed to boot and everything works except the external USB

Thanks

Enviado desde mi ARCHOS 101G9 usando Tapatalk 2
[Gen9 Android Development] mrbr0wn:
what are main differences between the kernel/initrd releases 1,2,and 3? what will i lose if i use v1 version on latest release of the rom? (just not to have the battery problems)

thanks :)
[Gen9 Android Development] swaaye:
Do you mean the 3G USB port or are you saying that the micro USB no longer allows file transfer?
[Gen9 Android Development] edeharo:
Yes i mean the 3G USB

Enviado desde mi ARCHOS 101G9 usando Tapatalk 2
[Gen9 Android Development] spendabel:
adb cwm

Hey

I have some problems installing, trying to sort them out. How do you get adb working in cwm? windows recognize the device as blaze_tablet...
[Gen9 Android Development] spendabel:
Well i got to a bootloop, logcat attached. Never needed to do a logcat before so i hope it's ok
[Gen9 Android Development] MmegaMac:
My error is the same as your.
[Gen9 Android Development] Quallenauge:
Failed to mkdir(/storage/emulated/0/Android/obb): Permission denied

Did you format you android and storage partitions before you installed the cm10.1?

If not, can you try that?
[Gen9 Android Development] trevd:
Hi There

Is that all there was? We need to see more than the error also what tablet have you got?
[Gen9 Android Development] Quallenauge:
There should be only one stack trace at the booting process...:o This at the tiler initialisation. The other ones aren't expected.

Spinlock - This is a warning. Maybe we have to have a deeper look athe initialisation or the default gouvernour.

Hwcomposer - I don't understand, why this exceptions is thrown. There shouldn't be a div/zero operation, because all variables for the sw_sync are initialized...

For the others, we have to take a deeper look at these....

The battery issue is a beast :( The circumstance, that I don't own this model doesn't makes it easier for me to understand what's going wrong. Occurs this error also with kernel 3.0.31?

(First, we have to analyze how the battery state is determined inside the kernel. After that, someone can have a look at the affected files in the git history to identify which change is responsible for the bug. )
[Gen9 Android Development] spendabel:
Well thats all i got with a logcat during bootloop, i just did a "adb logcat". I don't know how to get more info.

I got the g9 80 512mb ram

I tried a lot, this bootloop is from format->stock->rooted stock->the adb push your files (coping files in windows to the internal media has caused me bootloop before when flashing)->getting ok to cwm (windows showing tablet as blaze_tablet in device manager, no adb)->flashing zips ok including gapps->bootloop

if i go directly from non-rooted stock i can't flash gapps, if i don't flash gapps i get a black screen

Thanks for your work guys, i'm sure i'll work for me sooner or later
[Gen9 Android Development] trevd:
Spinlock - I don't know enough ( anything ) about that area to comment, right now "Spinlock" is just a word I hear occasionally In kernel discussions - Something I need to read up on.

the hwcomposer, I've noticed that , To be honest I just thought we where initializing it too early...... maybe we need to check the input, okay WE SHOULD check the inputs , it's good coding practice.

Agreed about the Battery, there's not a lot we can do on hardware we don't own, Anything implemented would be at best an educated guess, I can't imagine it's going to be much fun.

I did start diffing a couple of the archos files in the kernel be as you say, to understand how battery state is determined is the path to the solution. I always get a bit nervous round the kernel, I start to forget stuff, I think it's because it's that layer between hardware and software..... but it's just code at the end of the day LOL :D
[Gen9 Android Development] therbom:
And what about:

adb logcat > logcat.txt

Wait a few seconds, then close the terminal and upload logcat.txt.

I'm also seeing this error in the logcat:

E/dalvikvm( 660): cannot mountExternalStorage(): Permission denied

Isn't it possible that because the external storage can't be mounted, the directory Android/obb cannot be created?

To be absolutely sure, try:

adb shell stop
adb shell rm -rf /data/media
adb shell reboot_into -s sde
adb reboot android

Otherwise, did you try the method I posted here? This build includes gapps.

I'm running your build 0.1.0 and it says kernel 3.0.21+. It's working perfectly here. If you want something from me, just ask :)
[Gen9 Android Development] MmegaMac:
I get error : rm failed for /data/media, Permission denied !
[Gen9 Android Development] Quallenauge:
Because of the battery issue. Can someone try to use the file

drivers/power/twl6030_bci_battery.c from stock kernel/recompile it and see if this would solve the problem?
[Gen9 Android Development] therbom:
Try:

adb shell su -c "rm -rf /data/media"

Sure, once my Ubuntu system is up and running (fglrx...)
[Gen9 Android Development] stealthdave:
I believe that I'm amongst those having the battery issue. (My 80G9 is permanently at 100% on 0.3.0.) I also have an Ubuntu server that I can use to build a kernel for testing if someone can point me to a git repo and a quick tutorial on how to cross-compile Android kernels. :)
[Gen9 Android Development] MmegaMac:
Yes, it's finally works !! But I have the batterie issue : How to solve it or if I install 0.1.0 what's are the differences with 0.3.0 ??
[Gen9 Android Development] sleepingman:
Hi,

first of all, thanks for making all these builds when archos does not :)

now for the true question:

i'm having a similar problem than MmegaMac, i also get a bootloop at cyanogen logo.

i tried to do what everyone been saying,using adb commands, but i can't use adb in CWM and in the recovery mode(maybe is a user problem :P )

i tried to get a logcat, unsuccessfully....

the method i used is Stock> rooted Stock> 0.3.0 CWM> flashing all the zip's.

is there anything that i need to enable? ADB works when in stock/rooted rom.

be free to point out if i've done anything stupid(best way to learn)

thanks in advance.