yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] MmegaMac:
I have solve my issue by this way :

- Install rooted rom

- Type in terminal (on computer) :

adb shell stop
adb shell rm -rf /data/media
adb push archos.ext4.update /data/local/archos.ext4

- Shutdown and go in SDE : Remove Kernel and install Kernel and initramfs

- Now you boot on CWM but your storage is empty

- In terminal type :

adb push update-a101s-test.zip /data/media

- Did the same thing for each file

- Always in CWM install all the zip (wipe-data.zip is the last)

- Reboot now in CWM

- It works !!
[Gen9 Android Development] therbom:
I can confirm this. My external USB drive doesn't seem to get power from the tablet (build 0.1.0, so it's not due to the kernel update).
[Gen9 Android Development] trevd:
Hi it's either in this thread or the Paranoid android thread, you can enable usb with rfkill and usb power control in sysfs. You probably want to have a look through the Paranoid Android thread because we've kind of developed this and that in unison so fixes and bug reports etc are probably split across the two.
[Gen9 Android Development] therbom:
Thanks! It's working perfectly. You might want to consider creating a DeviceParts app, so users can enable/disable the external USB port in Advanced settings. Or at least in the OP :)

If somebody wants the answer:
[Gen9 Android Development] trevd:
Yeah, I suspose archos got something right with their UsbKey Toggle switch, That just needs re-implementing one thing at a time though ;)
[Gen9 Android Development] trevd:
Hi I've just diff'd the file in those two branches and they appear to be the same , unless I'm using git wrong be I did check against a file in know to be different and that's reporting the difference

git diff linux-jb-3.0.58 linux-ics-3.0.21 drivers/power/twl6030_bci_battery.c

I'm going to diff some more power related files with my new found git command :D :good:
[Gen9 Android Development] sleepingman:
thanks, im going to try this way.

:)

Edit: everythigns works until i'm in the CWM, them i cant acess by ADB to push the files...

does anybody have a hint or solutions for this?

thanks
[Gen9 Android Development] therbom:
The device does not identify itself as an Archos device in recovery. You might need to re-apply the drivers (Windows) or update your udev rules (Linux).
[Gen9 Android Development] sleepingman:
thanks, but what are the drivers to uninstall e reapply?in Windows.

thanks in advance
[Gen9 Android Development] therbom:
No need to re-install them; if you go to Device Manager, you should see an Unknown device. From there you can choose the Android drivers.
[Gen9 Android Development] sleepingman:
hum... in the device manager i see a "blaze tablet" when i connect while on CMW, i tried do update but without any effect.

can you tell me what are the specific drivers? android SDK? Archos?

and yet again, thank's :)

Edit:i think that i've done it!!! update in a moment :)

thanks again
[Gen9 Android Development] therbom:
If you choose 'blaze tablet' and update drivers, there should be an option to do it manually, then to choose from list and then to choose from Android/ADB drivers.
[Gen9 Android Development] trevd:
You can try android sdk usb drivers they have texas instruments as a vendor id. I'll probably change it to send an archos vendor id product id in the next build of recovery anyway.
[Gen9 Android Development] sleepingman:
Thanks for everybody answers!

i finally installed this great rom! Jesus this is fast! :P

thanks for the help and for all the work behind this and others roms.
[Gen9 Android Development] swaaye:
This worked for me as well. Thanks for posting.
[Gen9 Android Development] shitaki:
I have everyone's solution.. I have the same result where it messes up on the gapps :/ or I can get it to boot and it boot loops.. I don't know why it's not working, hmm is there an easier way to install?
[Gen9 Android Development] trevd:
Just relax , chill out we're ( well I atleast ) are working on it.... and I hear you about the install procedure, I'll make it a hell of a lot simpler in the next round, Even I was confused by it :D
[Gen9 Android Development] Djirin:
Hey that worked for me too! Thanks!
[Gen9 Android Development] shitaki:
Sorry about that trevd and the rest of the crew. I'm just very frustrated with so many attempts under my belt, I'll keep trying~
[Gen9 Android Development] swaaye:
I connect micro USB to my PC and the tablet is recognized (as Archos G9) but neither internal storage nor sdcard mount. Is this happening for everyone?
[Gen9 Android Development] thams:
Great job for 101s owner...

A support for 80 G9 is planned?

regards
[Gen9 Android Development] Quinny899:
Erm, it already is supported?
[Gen9 Android Development] thams:
i don t know....:o

I use [ROM][14/1/13][4.1.2][4.2 MOCKUP] CyanogenMod 10 - 4.2 Apps

But there are some bugs...

On this version of 4.2.2 all is work...

I hope a version of 4.2.2 for my 80 G9

Sorry for my english i m a little frenchies ;)
[Gen9 Android Development] shitaki:
Hmm does anyone have many other methods to install this? I'm willing to try anything, I have tried all the methods here but no luck yet. Thanks again for the help!
[Gen9 Android Development] realismo:
This version is working with Archos 80 G9 8GB / 512mb FLASH model!!! However this is not supporting the HDD models. You can try this one if you have A80S device.
[Gen9 Android Development] therbom:
Go to Settings > Storage > Menu > USB computer connection and enable 'Media device (MTP)'.

Could you clarify that? What exactly did you do and what exactly is failing? Also, what is your model?
[Gen9 Android Development] thams:
Sure?

I retry tomorrow if it s ok ;)

But i have testing this morning and i m block.

I put the "archos.ext4" on my tablet ... Restart and i block on Archos splash screen ( I have wait during 30 minutes)

Thx for your job
[Gen9 Android Development] shitaki:
I did the OP method, I also tried the method that involves the test-update101s.zip, also tried the method about putting archos.ext4 on the tablet directly instead of data/local and use the zimage etc. What method did you use? I have an Archos G9 8gb model
[Gen9 Android Development] therbom:
When you are in a bootloop, execute the following:

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

If that does not work, please attach a logcat.

PS:

http://xdaforums.com/showpost.php?p=40884587&postcount=289 is what I did
[Gen9 Android Development] swaaye:
Ah thanks. I did try looking through settings for that but I didn't see the menu button buried on that page.
[Gen9 Android Development] edeharo:
Hi, anyone knows how to run a usb memory connected to 3g usb conector?
[Gen9 Android Development] therbom:
Hi!
[Gen9 Android Development] swaaye:
MTP won't stay enabled if USB is connected....

I've attached a log of what occurs when MTP is checked while USB is connected.
[Gen9 Android Development] therbom:
That's not really complete, or my laptop is doing wrong... Try:

adb logcat > logcat.txt

Wait a few seconds, then close terminal and upload logcat.txt.
[Gen9 Android Development] swaaye:
Ok here is the full log.
[Gen9 Android Development] thams:
Hello

I have a A80S Model

I run my tablet in normal mode

I m connect in ADB

Adb shell

su

cd data

Busybox rm -rf *

(my folder /data is empty)

adb push archos.ext4.update /data/local/archos.ext4

Reboot in sde flash

init ramfs an Zimage

Reboot...

I m stuck on Archos Splash screen (No Abd) 10 min for the moment

I don t understand...

I have restarted my tablet after 30 minutes archos splash screen and it s reboot in CWM mode...(miracle) But i don t see any zip for installing... Adb doesn t work ... No choice --> reboot

And It s amazing CM10.1 boot.... After 5 minutes my tablet run on 4.2.2 (i don t understand but it s works and i have Gapps)
[Gen9 Android Development] MKJMKJMKJ:
i installed the rom(80 g9 sdcard modek) but i am stuck on boot animation..

i am on the kernel that you provided,what can ido?

i putted archos.ext4 in the root folder because data/local didnt work,could that be the problem??,how can i revert the changes?
[Gen9 Android Development] realismo:
0. Make you sure your device driver is installed and your ADB is ready to use

0.1 Install SDE if you don't have

0.2 Install the kernel initramfs.cpio.lzo and zImage from the CM10.1 as usual go to SDE in developer remove your kernel if you have original rom reboot and Flash your Kernel as usual(You can find information about SDE on the forums).

Wipe your Data > Reset Android in SDE

Now you have CWM.

1. use cwm to mount the data partition. > Mound and storage in CWM

You can check your mounted drivers

Type:

2. adb shell mount

After that you have to create data/local folder if doesn't exist

3. adb shell mkdir /data/local

And type that command to the ADB to push the ext4.update to data/local

4. adb push archos.ext4.update /data/local/archos.ext4

5. reboot your device

I hope that can help you!
[Gen9 Android Development] trevd:
It appears if you have it plugged in on start up it picks it up alright but when unplugging/re-plugging and plugging it in after power on it doesn't want to know. That what I observed anyway, I'm trying out a fix tonight :D
[Gen9 Android Development] sleepingman:
i was going to just add that ;) (noticed too)

i added a logcat in my previous post regarding the MTP, when i select it settings it just keeps getting disabled.

anything that i can help(not any coding....i think that i would end up "killing" the poor tablet :P )
[Gen9 Android Development] Djirin:
I just noticed that logcat does not seem to be updating any more. dmesg works but the logcat logs in /data/test have not updated since I installed the rom. Anybody else seeing this?
[Gen9 Android Development] shitaki:
Trevd, I did it!! I finally got it running! Omg I'm so happy thanks again to the team! :D

So I did

1st: be on any rom is okay

2nd: download everything on the home page

3rd: make a /data/local and /data/media if you don't already have it

4th: transfer the archos.ext4.update to /data/local and rename it as archos.ext4

5th: transfer the 3 zip files to /data/media

6th: shutdown and put your phone into SDE

7th: Go to developer edition and remove kernel (shows if you have an official rom) if it's not there just ignore

8th: flash zimage, initramfs option and then put those zimage and intramfs files when the directory shows up

9th: then press okay and you should be in CWM

10th: Don't flash any zips first! Just REBOOT and see the cyanogenmod logo, and then it will take you back to CWM

11th: now flash the 3 zips with the cyanogenmod zip first, then gapps, then the wipe.zip

12th: then reboot, hopefully it works for you too!!

no adb required!
[Gen9 Android Development] julle131:
I'm interested in trying to build this.

I haven't found the kernel filesFound them, but https://github.com/Quallenauge/cm10-archos-g9/tree/cm10.1 seems to be the device tree.

https://github.com/Quallenauge/ArchosG9-BuildEnv

Can I use the guide in the readme and the tools? Those would seem to cover everything, and it was updated 9 days ago.
[Gen9 Android Development] trevd:
Yes Please Do, It'll be good to have some one else having a crack at it

Here's the kernel - https://github.com/Quallenauge/kernel-archos, Pick a Branch any Branch :D

you also need https://github.com/Quallenauge/android_injection.

I've jigged stuff around on my device tree. If you want to have a go at using the trevd_cleanup branch on the device tree it pretty much builds end-to-end as a standard android rom, not finish the automation of the ota update zip yet but I'm getting there. :good: or Alternatively follow the BuildEnv Guide

If you've got any questions on building give us a shout, always happy to help ppl who are having a crack.

EDIT: Actually you're probably better off staying clear of my device tree for now as I've repartitioned my internal sdcard so /cache and /system have there own partitions. This removes the need for the .ext4 file becuase It's a pain in a**e to be quiet honest.
[Gen9 Android Development] realismo:
It sounds good, this battery issue is very annoying. :) I hope you will find the suspicious part of this.
[Gen9 Android Development] julle131:
Slowly downloading the source... In the mean while, I installed the 101s test version to my 101G9 Turbo (1.5GHz).

After quick testing, CM10.1 seems smoother than the stock roms :highfive:. I'll try to get some logcats if I face any bugs.
[Gen9 Android Development] trevd:
You can cut your download time by just downloading the branch you want. That's assuming you're doing a full repo sync

There's an article on XDA-U that explains it.

If you're really strapped for bandwidth you could also edit your manifest.xml and remove all the Mac tool chain stuff which is probably nearly a gig.
[Gen9 Android Development] TTLucian:
Hi. I have just installed this from and most is well. Can't believe I'm finally running JB on my 80 G9. I even got multi users working! :) I also have the battery bug you guys are discussing. I also noticed that GPS isn't working on my setup. Is it just me? Thanks again for putting time into this.
[Gen9 Android Development] trevd:
Not just you so GPS is also on the list. Did you get any strange behavior with the GPS. Like resets or force closes? 3g in that build as well . the earlier builds are not too different if you want to use one of those. This one was more experimental with using different libraries and the like. :)
[Gen9 Android Development] freeweber:
Ok, I've done this, but i'm stuck on the cyanogenmod logo turning

Any idea?

Thanks a lot
[Gen9 Android Development] julle131:
You probably did not wipe data. Or I assume so because that seems to be the main reason for bootloops.
[Gen9 Android Development] Quallenauge:
Hm, that's all very mysterious.

GPS works for me, as good as when I'm using the stock rom => good.

Also I encountered that the charger is not detected anymore, after replugging in the power socket. But the device is charging anyways (but on low mode) on my device. I didn't encountered the battery jumps. :eek: (Which is good for me, but not so good for the others).

[MENTION=3279100]cobje[/MENTION]: Did you finish your Ubuntu Installation, so you can try the file replacement, which is suggested last time? Does this help?

[MENTION=4179234]trevd[/MENTION]: Good job on cleaning up the device tree! Thanks. I'm waiting for your go, to switch over (You wanted to reorganize the cache partition).
[Gen9 Android Development] Djirin:
I am using a 101g9 512mb 1.5ghz turbo model. I can't remember which files I used to install it now. :eek: I think I used the main files off post one and not the 101 files. A few bugs here and there otherwise everything works great.

I noticed a few backtraces in dmesg. Dmesg Log file attached to those that would be interested. I would attach a logcat but it seems logcat has stopped running as the logs have not been updated since the 1st when I installed CWM.

GPS does not work for me. Maps keeps saying 'tap here to improve accuracy' and tells me to turn on GPS. Everythings enabled under Location Access.

The app 'GPS Status' force closes while 'GPS Test' will open up but tells me that GPS is still turned off.
[Gen9 Android Development] Djirin:
A quick followup. If I run logcat manually it works fine. Do see a lot of messages like:

I/Choreographer( 2989): Skipped 214 frames! The application may be doing too much work on its main thread.
[Gen9 Android Development] trevd:
Hi, Good to hear from you, I diff'd the file you mentioned and it's identical on all our kernel branches, I mentioned that in an early post but you may have missed it buried in there with all my other cr*p :D .

After a little investigation , I've kinda got a fix. Initially I was poking around in "arch/arm/mach-omap2/omap_phy_internal.c" and I back-ported a couple of different fixes to see what would happen..... The answer was not a lot! :D,

I've tracked it down to drivers/usb/otg/archos-twl6030-usb-xceiv.c it appears the calls to omap4_enable_charger_detect() and omap4_disable_charger_detect() are at fault and I believe have been made obsolete because omap4_charger_detect() was patch to handle the enabling and disabling of charger detection. However I think I'm missing something because it only re-enabled the charge when on usb-ac power and not usb on my machine, where as booting with it plugged in to my machine picks up enables full charge mode.

When you say low mode, I decided to run some power draining tests, I basically just turned everything on and the battery has dropped..... but then shot back up when it went to sleep... this is while it's plugged into my computer :confused:

Some Light Reading for you... :eek: http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=swca105a&fileType=pdf, Although I don;t think we'll need to get that deep into it.

Well it's not far off If you want to use that branch to build an Image there's a couple of little niggles, I've been trying to get the recovery ramdisk to use the one that is built rather than static, nearly there although it might require some of your makefile magic ;) . There's a file called shbootimg.mk which looks like it does the job of fixing up the build order to make a ramdisk followed by the kernel. It's a technique used by CM on many samsungs, galaxy tab for example as well as many others.

I've created a liblights so we can stop uses the archos closed source version. The brightness control is working, not quite decided what I want to do with the Power Indicator with regards notifications etc and abcbox now creates symlinks in much the same fashion as busybox

Still go a lot of work to do to make recovery safe and It does demand a mount point for /cache , I'm Still thinking about that one, I've got my solution but whether that's for everyone I don't know yet :cool:

Onwards!

Edit: Re GPS - The crash and the reset was something that happened once and I didn't pay much to it..... It's seems there's an errant "a" on the service call line in the init.rc which probably explains why it's not coming up.
[Gen9 Android Development] trevd:
I wouldn't worry too much about those messages, I see them quite often even on a factory Nexus 7 Rom , I've Just had a look at the code it's to do with the Animation Framework and vsync , I presume it's project butter at work ( although I could be wrong ).

Source : http://androidxref.com/source/xref/frameworks/base/core/java/android/view/Choreographer.java
[Gen9 Android Development] trevd:
Battery or No Battery Bug I've been 8 hours on battery and it's at 75% with bluetooth and wifi turned on, I never really pay that much attention but it seems like alright numbers to me. :p :good:
[Gen9 Android Development] Filatov.p:
Guys, can anybody clear these things:

is there a bug with no charging? (didn't get it, many different feedbacks)

do 3g dongles work via back usb port?

do micro usb host work?

Thanks in advance
[Gen9 Android Development] trevd:
Man!! I feel like I'm missing out on some serious rom building fun! :( Although you folks seem to have it well covered :good: The bluetooth message is due to that fact that google have switched Bluetooth Stacks from Bluez to bluedroid More Info Here. The source of the warning is the Android.mk in the external/bluetooth/bluedroid directory.... I would assume some configuration tweaking is involved. Probably worth looking at an AOSP devices tree as a reference.
[Gen9 Android Development] Quallenauge:
Hi Trevd! Hope you get your new (old) device soon. It's a win when you are a part of this archos g9 community :cyclops:

Currently, the main problem for me is, that I don't get the point of manage internal/external/secondary storage on the archos device.

I modified the vold.fstab and also the storage_list.xml files, but I get a directory of the sdcard (on the side slot of the device) which is only accessable as root. Applications are not able to access this folder (either read or write). In terminal app I can switch to it, but I get a empty dir.

Weird....
[Gen9 Android Development] Quinny899:
Re: [DEV][4.2] CyanogenMod 10.1

Are you mounting it as user 1023? According to my Gnex, 1023 is media
[Gen9 Android Development] Quinny899:
Re: [DEV][4.2] CyanogenMod 10.1

I believe accounts is a tablet only feature, but it's enabled in ParanoidAndroid. I might try it later
[Gen9 Android Development] stevemp:
logcat

I guess it would be good for keeping people from going through your files if you loaned or lost your tablet.:rolleyes:

Downloaded local_manifest.xml and made a fresh build so we have the same rom to work with. Last time I tried to build ParanoidAndroid made it 136 minutes before stop no rule to make mdpi blah blah. :confused:

Just a couple of typos:

full_archos_g9.mk

# SGX driver

RODUCT_PACKAGES += \

ti_omap4_sgx_libs

init.dongle.rc

disbaled

SettingsProvider( 827): Generated and saved new ANDROID_ID [92edbfe89cfc8951] for user 0

I/SystemServer( 827): Profile Manager

W/Profile ( 827): Null Pointer - UUID not found for Default. New UUID generated: da7e09e6-1a5a-4a94-b3b8-2992aeedbcd0

W/Profile ( 827): Null Pointer - UUID not found for Work. New UUID generated: 28fa3f74-0a4e-4608-b5c5-c38c58dd974a

W/Profile ( 827): Null Pointer - UUID not found for Home. New UUID generated: 3e5862be-6e6e-4442-95e2-17fb146d0c97

W/Profile ( 827): Null Pointer - UUID not found for Silent. New UUID generated: de7fd13c-9cdf-48d1-8c78-e87f956a39ee

W/Profile ( 827): Null Pointer - UUID not found for Night. New UUID generated: a740c487-08bc-470c-922e-95d8b4f614ce

D/ProfileService( 827): Set active profile to: da7e09e6-1a5a-4a94-b3b8-2992aeedbcd0 - Default

D/ProfileService( 827): Saving profile data...

:confused: I would think the active profile would be for user 0.
[Gen9 Android Development] stevemp:
mounts

storage_list.xml

storage android:mountPoint="/mnt/sdcard"
android:storageDescription="@string/storage_internal"
android:emulated="true"
android:primary="true"

storage android:mountPoint="/storage/sdcard1"
android:storageDescription="@string/storage_sd_card"
android:primary="false"
android:removable="true" />

storage android:mountPoint="/storage/usbdisk0"
android:storageDescription="@string/storage_usb"
android:primary="false"
android:removable="true"

It seems to me internal sdcard should be /mnt/sdcard and external sdcard should be /storage/sdcard1. :confused: Internal sdcards aren't removable.

I am going to try this and see what happens. Need a Linux Guru for advice. :)

dev_mount volume_sdcard /mnt/sdcard auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1
[Gen9 Android Development] trevd:
Hi Folks

After a bit of faffing ( not fapping :D) I got a booting Image going, am I missing something? because my graphics is split screen, I used steve's latest ext4 and quinny's ramdisk and kernel..... I need to get back into my archos mindset and get my "dev" on :laugh:

@Quallenauge ( and everyone! )

There's not a lot in can do with F**cked graphics, especially as CM killed adb :eek: So I quickly flashed a CWM Ramdisk and found what causes the adb death. It's not a database setting, It's because the persist.sys.usb.config persistent property storage file at /data/property/persist.sys.usb.config is empty and the values in those property files override anything set in default.prop... So I deleted that file reflash the CM ramdisk and back in the room with adb access! Not a settings screen in sight! :D

Just been looking at the storage stuff, it's mind F****** me already and the mental rom layout isn't helping with direct device comparisons!!! :silly:

I Probably Need to get some sleep! HackOn Folks !
[Gen9 Android Development] Quallenauge:
Hi guys!

I'm a little step further.

We need to recompile the kernel to gain namespace support. The the /storage/emulated directory contains the long awaiting "0" directory. Now there are insufficient permissions, I need to resolve.

Maybe we are a little bit closer to the beta release?
[Gen9 Android Development] Quinny899:
Re: [DEV][4.2] CyanogenMod 10.1

When storage works, I consider it a beta