yashsingh1/xdaforums huggingface dataset:
[Gen9 Android Development] trevd:
If your still stuck with that,

Archos do some trickery, they symlink /mnt/data to /mnt/storage

This is a mirror /data/media which is created by the init.rc, the sdcard system service is what mirrors /data/media to storage.

The sdcard service is defined in the device specific init files in /etc/init/init.<devicename>.rc like so

service sdcard /system/bin/sdcard /data/media 1000 1015

And doing a strings on the sdcard binary shows it contains the hardcoded string /mnt/storage, I think archos have slightly modified the core sdcard system service ( Source Code Here )

Also a fun thing to do is dropping into shell on an sde version (don't know if you have the rights in stock to stop/start a servce ) with adb then

ls /mnt/storage

You should see your internal sdcard contents, then do

stop sdcard ; ls /mnt/storage

You should get

ls: /mnt/storage: Transport endpoint is not connected

which kind of confirms whats going on.

I don't know whether you've tried all this already or whether It's off track of what you need but I thought I'd chuck it out there :)

It seems Archos do alot of non standard/extra voodoo with the file system, however I would think If you make sure all their system services related to file system / devices nodes are started then you should be golden :laugh:
[Gen9 Android Development] JackpotClavin:
I'll try that tomorrow. I was up all night building my JB 4.1 SDK port for my Galaxy Nexus only to find out that when the phone eventually successfully booted up, the navigation bar (the on screen controls) on the bottom weren't enabled and I couldn't fix, so I couldn't move back or home, just one way and no turning back :O

Looks very, very, very, smooth however ;)
[Gen9 Android Development] trevd:
Hehe, In deep with many devices eh? :laugh: Sounds like fun, I presume you'll fix it?, you sound like you have a decent handle on things. adb shell input allows you to send keyevent like home and back for example. I've wrapped loads of additional adb goodies in a bash script, I can just type " a home" on my shell to send a home keypress. I think I'm a bit of a adb freak and a lazy b*stard :) Got a few bugs to fix in that before throwing it up.

Back to CM9, I did an extra test by deleting the Pictures and Video folder from /data/media, they where recreated on reboot. There's nothing in the rc files from what I can see, so they're being creating elsewhere, don't know if it system level by another service or by the one of archos' apks that they have, I could just be spouting BS and be totally wrong on it :laugh:
[Gen9 Android Development] Shano56:
heh...of course you cook this up right after my tablet breaks...again! :(
[Gen9 Android Development] blogmaw:
Ready to test ;) (A80G9)
[Gen9 Android Development] JackpotClavin:
Sorry, haven't done anything regarding ICS for the Archos G9 today, got sidetracked doing JB for it :P

http://imgur.com/a/OrqBU
[Gen9 Android Development] nickholtus:
wow, you are great.

i was working on cm9 and jb without succes.

i couldn't get it booting.

now you have got it booting i am sure i can help you fixing things, if you want.

i have a archos g80 8gb rooted, sde installed and everything ready:)
[Gen9 Android Development] JackpotClavin:
My first shot didn't boot either. I couldn't figure out what was going on I had done everything right. Then I remembered I was missing the folder /system/etc/init with all the init scripts
[Gen9 Android Development] nickholtus:
already tried that,

how did you build it??
[Gen9 Android Development] JackpotClavin:
Maybe you had the wrong permissions or something. You should be able to get a logcat and do a log of debugging to get it to boot up
[Gen9 Android Development] alahkel:
Wonderful! On jb whats working and whats not?

But I'm a lot more interested in cm9 right now ('cause youve got almost everything working there :p)! Well done, really a great enhancement for us! :)
[Gen9 Android Development] nickholtus:
can you upload the JB??

then i can investigate what i am doing wrong...
[Gen9 Android Development] JackpotClavin:
JB was more of a proof of concept, not gonna develop any further, but I'll upload it if some want it just for kicks. WiFi didn't work which was kind of annoying, but I was only looking for a successful boot so I could look at the ui and see what the tablet version of JB looked like
[Gen9 Android Development] nickholtus:
that would be great

it would help me very much with developing for this device
[Gen9 Android Development] cajl:
how use this
[Gen9 Android Development] alahkel:
So I really can't wait for your cm9! :)

I'm amazed about how fast you've fixed almost everybugs!

Was it better having a ti omap4 SoC? About compiling and bugfixing I mean :p

Since gnex has ti omap too (even if a more powerful chip than ours of course)..
[Gen9 Android Development] Quinny899:
If you upload what you ended up with, I'll try and get some stuff working
[Gen9 Android Development] alahkel:
That would be great too :)
[Gen9 Android Development] baari21:
It would be really great for you to upload what you have done on jb so far since we aren't sure to get jb officially from Archos. That way we can have both cm9 and jb on our device all thanks to you. I'm 100% sure there are other developers that would do it if you upload it. nickholtus and Quinny899 are excellent developers and they asked you so they are willing. Great job on getting jb to boot btw.
[Gen9 Android Development] NoSignalFound:
video output

Is functionallity of the beloved hdmi output a possibillity?
[Gen9 Android Development] pbarbosa:
anymore news? screenshots or photos would be great...just to keep curiosity
[Gen9 Android Development] alahkel:
I'm starving of some cm9 love on our g9 tabs! :p
[Gen9 Android Development] JackpotClavin:
Sorry guys, just been kinda busy this week. Tomorrow I'll make my package so all you have to do is push it to your device (you won't have to make folders and push a few files) so everything is ready to go. I'm also working on a kernel for us as ours is version 3.0.8 which is from like November and hopefully I can bump that up to 3.0.31 which the Galaxy Nexus just got which works well with Jelly Bean for when the source is released and I port that ;)
[Gen9 Android Development] DragosP2010:
Don't forget the hdd version!
[Gen9 Android Development] alahkel:
Which rom package are you going to release, cm9 or jb one? Hope cm9 :p
[Gen9 Android Development] philmein:
o. +1
[Gen9 Android Development] JackpotClavin:
Wait... is there a difference?
[Gen9 Android Development] gen_scheisskopf:
-no sd-card slot

-smaller internal flash (2GB)
[Gen9 Android Development] xbutchx:
Definately ready for this. Just put two 32GB cards in my 80 g9 so I'm ready to explore the possibilities.
[Gen9 Android Development] attaccapanni:
any news? We all are waiting :)
[Gen9 Android Development] alahkel:
Considerando che anche io mi sto trasformando in un attaccapanni dall'attesa *.* ahahah scherzo :p just joking..we are all waiting for the great coming! :)
[Gen9 Android Development] JackpotClavin:
Boy, do I feel like an ass. It totally slipped my mind that I said I would post it "tomorrow" a few days back. Tomorrow if I can find time, I'll flash back to 100% stock, and then make a new build, and make make sure all you have to do is push the image to your device and wipe /data and reboot. I'm sorry for those who were waiting for my empty promise :/
[Gen9 Android Development] JackpotClavin:
You would install this the same way you would install any other custom ROM for the Archos, simply pushing it to the storage. The only difference is that the data is incompatible between ROMs, so you will have to wipe it. You should backup anything important you have that's on the /data partition now before proceeding. After pushing the ROM to the storage like you would any other ROM. You wipe data by typing "adb shell" (without quotes) then once you enter the shell, type "stop" (this will essentially stop your device from doing anything from now on until your reboot) then type "rm -rf /data/*" and once that is finished, you can type reboot, and it should boot up! Gimme your bug reports once you get 'em because I know this is somewhat alpha!

The md5sum is d8a5cc301479072ce914f3a9ba731b43

https://hotfile.com/dl/162563069/eda1bcb/archos.ext4.html
[Gen9 Android Development] nickholtus:
what are you uploading?? cm9 or jb (or both)
[Gen9 Android Development] JackpotClavin:
CM9, I have an upload limit of 500MB/day, which will be passed if I do JB today too :/ link is up!
[Gen9 Android Development] Quinny899:
Request recognised developer or contributor and you can get almost unlimited in dev-host
[Gen9 Android Development] Quinny899:
Or if it's less than 512mb, just use dev-host!
[Gen9 Android Development] nilse:
cool that you finally show us what you've done so far :D

i suggest you to make a new thread with a changelog or what is working so far

i cant wait until you push the sources ;)
[Gen9 Android Development] Quinny899:
Except that would wipe internal storage, thus deleting the ext4 file, as I just found out :/
[Gen9 Android Development] JackpotClavin:
The internal storage isn't in /data for mine. What device do you have?
[Gen9 Android Development] Quinny899:
/data/media is the internal storage for all non-hdd devices

To install:

Copy ext4 file as normal

Boot into Archos Recovery

Format System > Reset Android

Reboot and select the right one, it will boot now :D
[Gen9 Android Development] Quinny899:
Issues I've got:

No root :(

I can't get adb up, though USB or network

Seems to be having issue with linking to internal storage, for browser downloads and the like

I'll work on getting root tomorrow (it's a su permissions issue), which should fix the other 2
[Gen9 Android Development] surdu_petru:
Yes , su have permission 755 instead 6755 ! looking into archos.ext4 !

- but for me still no boot !
[Gen9 Android Development] JackpotClavin:
Why isn't it booting? What does adb logcat say? And next revision will have the correct permissions for su. Sorry about that folks
[Gen9 Android Development] trevd:
Good Work.

Hi JackpotClavin

First of all Great Work, I got the image to boot successfully on my A101S , I dropped Superuser on there before I pushed it down, It Seems pretty stable at first glance and I didn't see any unwanted ANR's or FC's and logcat seemed quiet happy :good:, I did have a random reset but I didn't catch it in logcat and it's not too uncommon for these tablets to reset anyway :D

Obviously it is super-alpha early stages and there more testing to be had, so I going to have a play around and see what I can break and what's missing.

Out of interest, what's your ultimate aim with this (if any) or did you just fancy the technical challenge? :D
[Gen9 Android Development] Quallenauge:
CM9 configuration

Hi JackpotClavin!

Thanks for your effort to port cyanogen mod to our archos device !!

Can you please provide your cyanogen "lunch" profile configuration?

I saw you had used an (own created) cm_archos_g9.
[Gen9 Android Development] blogmaw:
Feedback & issues

Thanks so much!

Works great for now. Though, it's a shame we don't have root nor 3G. I can't get a file manager since i don't have wifi, but is sd mounted? because gallery app crashes (also why is there 2 of them?)

EDIT: other issues noticed : -BT doesn't work between my PC nd tablet (maybe PC issue)

-using my pc, I noticed that the ext4 file is internal storage and tablet's storage is sdcard (sdcard is not used, and if sdcard is not present, tablet's storage can not be used). That means apps can use only 100Mb? Can you make a build similar to surdu_petru's where the internal storage is the tablet's actual storage?

-camera app works bad on A80 : image is so big that i can't access most of the settings on the right.

EDIT2: So far, seems very stable, 0 FC, 1 self-reboot. 15 secs to boot (~25 with other ROMs wiped data). Keep up the good work! :)

Anyone has an idea to install solid.apk in the tab's internal storage (the 16gb one, not the 300Mb) with terminal? Tried cp /mnt/storage/solid.apk /data/app/solid.apk and /mnt/sdcard/solid.apk /data/app/solid.apk but tit didn't work (i may have the syntax wrong as i haven't used Linux for a moment).
[Gen9 Android Development] Quinny899:
You can use the camera if you change the save location to sdcard
[Gen9 Android Development] surdu_petru:
Hi!

Thanks JackpotClavin !

Now boot also for me ...and look very nice ;)

Problem was in Android Reset -> because delete /data/local , so I do Reset Android after that I maked local/ directory in data ; mkdir /data/local and push archos.ext4 in data/local !!! in this way it boot ! :good::good:
[Gen9 Android Development] alahkel:
Great man! Well done! Downloading right now :) will report later my impressions ;)

---------- Post added at 04:09 PM ---------- Previous post was at 03:18 PM ----------

I have the same problem of yours, could you explain me in detail what you did to get it to boot? Thank you =)
[Gen9 Android Development] Quinny899:
To get it to boot, go into the recovery, then select Recovery System (this step is skipped if it isn't there) and then Format System and then Reset Android. Now reboot and it will work
[Gen9 Android Development] alahkel:
I did exactley that way but it doesn't boot o_o

If I don't reset android, it comes up the cm9 bootanimation and loops there. If I reset android, it gets stuck on the first Archos splash screen and does nothing :(( Thought Surdu made something else to get it to boot ._.
[Gen9 Android Development] Quinny899:
Root is working on my ext4, I'm adding a few things and then might upload it :)
[Gen9 Android Development] alahkel:
Anyone? :/
[Gen9 Android Development] trevd:
A Bit of Hacking

Hi Folks

I've been hacking around on this all for most of the day, I've managed to resolve a couple of issues, mainly related to the flash based models (sorry HD guys)

Fixing FC's on A80/101S series due to Emulated Storage

I'm using a A101S and on a standard archos rom the directories /storage, /sdcard , /mnt/storage and /mnt/data all point to the same place /data/media.

This is controlled by a native service called sdcard, it is defined in the device specific init file as file follows

File: /etc/init/init.A101S.rc

service sdcard /system/bin/sdcard /data/media 1000 1015

This is a standard android service and can be found on just about every device out there, however, Archos have tweaked the code in sdcard service to handle this emulation and symlinking. The good news is we can replace the one in cyanogenmod with the version from the 4.0.7 SDE Rom. This will stop Camera and WebBrowser FCing when trying to access filesystem resources.

Leaving the Existing Data Partition in-tact

I didn't want to remove everything from the /data folder so I decided to put CM9 /data/folder on the external sdcard, this means you can leave the Standard Rom intact should anything go drastically wrong. in test :D

I formatted my external sdcard with a fat partition and a second partition formatted to ext4.

I then edited the /data mount point in the root init.rc file to read as follows

mount ext /dev/block/mmcblk1p2 /data noatime nosuid

The archos.ext4 image is still copied to the normal internal /data/local which is located on /dev/block/mmcblk0p4. This is mounted by the SDE initrd scripts the mount point is then "overwritten" by the external data folder when cm9 loads.

3G Issues

I also got a ppp connection going on the Offical Archos 3G as well the Huawei Modems that I seem to have a passing interest in :p , This only allows browsing through the browser which uses webKit Sockets instead of the Connectivity Service, The Radio Interface Layer was being somewhat temperamental. More on this later :)

Peace
[Gen9 Android Development] surdu_petru:
Hi !

Please install Root version firmware 4.0.7 and :

>adb shell

#rm -rf data/*

#mkdir data/local

#exit

> adb push archos.ext4 /data/loca

> adb reboot

- press volume down -> go to Flash kernel & Initramfs and copy here zImage & initramfs.cpio.lzo than OK! -reboot ...

Now will boot !!!:good:

---------- Post added at 07:10 PM ---------- Previous post was at 06:56 PM ----------

Hi!

To work root is very simple , just chmod 6755 system/bin/su !!! , permission was 755 !
[Gen9 Android Development] JackpotClavin:
I'm still having an issue with the physical sdcard not mounting. I can see the files with adb if I navigate to /sdcard, but the device can't actually see the files in the /sdcard for some strange reason. Very annoying :confused:
[Gen9 Android Development] Quinny899:
Yeah, I got root

(Language issues again maybe)

Adding Archos Camera, File Manager, Remote Control and sorting out double gallery

---------- Post added at 06:29 PM ---------- Previous post was at 06:23 PM ----------

Finally got adb working though adbWireless from the Play Store :D
[Gen9 Android Development] alahkel:
Thank you, working really great now! I wonder if we can fix the bugs with internal sd :P I've seen someone (sorry, can't remember the name a few posts ago :/) talking about that *-*

Devs you are really great, thank you :)
[Gen9 Android Development] pbarbosa:
can you send me the default init.A80S.rc file from stock rom?

thanks in advance
[Gen9 Android Development] surdu_petru:
Hi !

Here it is : init.A80S.rc
[Gen9 Android Development] alahkel:
Lovely, the big-size usb host is always on and working great as host usb port :p
[Gen9 Android Development] JackpotClavin:
Okay, just got the sdcard to mount somewhat correctly. Although I don't know exactly what I did. I can take pictures with the camera and save it on both the internal storage and mounted sdcard as well. For some reason however, when I open root explorer, if I click on /sdcard, it won't show my files and it will say it's unmounted, and the same goes for the /mnt/sdcard. This might create some incompatibility between some apps, but I'm actively looking in to this issue

Edit: If anybody wants to be awesome and de-odex the stock ICS ROM, I can use that Camera.apk rather than the one CM has because the camera button placement is kinda funny. I just need the stock Camera app deodexed so we can use that in future builds :-) I'll throw in the CM7 file manager in there as it works correctly with the /sdcard mounting issue so we have that too. Anything else missing that can easily be thrown into future ROMs?

Edit: Have the internal storage as well as the removable storage working 100% :-)

Edit2: Source is here https://github.com/JackpotClavin/Archos-G9

I will make a new official thread with a changelog and with the next release (whenever that is, should be sooner rather than later)
[Gen9 Android Development] Quallenauge:
Many thanks for the sources and for the Readme inside them!

Great to reproduce the build and this way we are able to look how do things work!
[Gen9 Android Development] surdu_petru:
Hi !

You can use my deodexed Rom for extract Camera.apk => http://xdaforums.com/showthread.php?t=1720422

Good luck !
[Gen9 Android Development] blogmaw:
Could you please for next version include a basic file explorer? (like in /data/app so deletable) since we can't use CWM to flash one.

@surdu_petru Isn't su in /system/xbin ?
[Gen9 Android Development] Quinny899:
I had an old deodexed camera that worked
[Gen9 Android Development] nickholtus:
thanks:)

now i can work on AOKP:)
[Gen9 Android Development] pbarbosa:
thanks a lot...
[Gen9 Android Development] alahkel:
Hi, thank to all the devs working here and there to make our g9 wonderful xD

Is there a way to calibrate the touchscreen? After a day using the tab with cm9 if I touch the shell at the borders of the touchscreen I have touch responses too (i.e. touching the lower shell border is like touching the back softkey).

Thank you again :p
[Gen9 Android Development] alahkel:
Ok, I dunno how but somehow the system repaired itself and now I have no more shell-touches o.o I mean I left the tab recharging through the whole night, when I turned out the charging and put the tab back from deep sleep it was showing that shell-touches behaviour...after a few minutes using it, no more mistakes o.o Great! :)
[Gen9 Android Development] JackpotClavin:
Yeah I'm using the CM7 one next
[Gen9 Android Development] alahkel:
Is there a way to backup the whole system image? I mean with whole data, like a nandroid but without using a custom recovery.
[Gen9 Android Development] Quinny899:
You can use the stock archos one, you just need the com.archos.framework Java file
[Gen9 Android Development] surdu_petru:
Hi!

In Archos firmware 4.0.3 , su is in system/bin !
[Gen9 Android Development] gen_scheisskopf:
It should also be symlinked to system/xbin- from Superuser update-script:

symlink("/system/bin/su", "/system/xbin/su");
[Gen9 Android Development] JackpotClavin:
I've been thinking about porting a boot menu that can boot into clockwork. Same thing the CyanogenDefy team uses
[Gen9 Android Development] Shano56:
I think a working clockwork mod recovery would be better :P letama got pretty far
[Gen9 Android Development] surdu_petru:
Hi !

...as long as we are unable to use the classic "update.zip" , not required symlink su -> system/xbin/su !!! I never use this symlink in my Roms , and work very well, also Superuser can update binary su ! :good:

...what would help more if I use this symlink ? ...as long as everything works perfectly without symlink su in xbin/su ...
[Gen9 Android Development] alahkel:
Yeah, you could continue the work made by letama --->

It'd be really good to begin using update.zip roms and the nandroid system in cwm
[Gen9 Android Development] alahkel:
If I try to chmod system/bin/su it tells me there's no such file .-.
[Gen9 Android Development] surdu_petru:
Hi:

Yes , because we are here under CM9 for Archos g9 !!!....you must try this in Archos Rom , not in CM9 Rom !...
[Gen9 Android Development] JackpotClavin:
Can somebody link me to this work? I haven't seen anything regarding CWM on the G9 series before :P
[Gen9 Android Development] surdu_petru:
Hi!

Here it is .

Good luck ! :good:
[Gen9 Android Development] alahkel:
The link surdu posted contains the sourcecode if I remember well :) good luck!
[Gen9 Android Development] Shano56:
yeah it's one of his last posts
[Gen9 Android Development] trevd:
3G Support

@JackpotClavin

Thanks for the code, I noticed the repo is missing the majority of the files needed to get telephony/data enabled.... I cloned the repo with the full intention of looking into this and pushing the changes back to you ( Using Git As Linus Intended ) :)

However I'm pretty tired now and have spent the last ten minutes arguing with my self whether a file should go in the device prebuilt section or the vendor proprietary tree :D

I think It would be worth enabling the full Telephony on this rom. because any Usb Modem can be used and there are some out there with voice functionality. I tried setting voice and mms to true in the config.xml in the repo and gave it a rebuild.... I ended up with a bootlooping rom.....So I just patched in the framework files which fixed the boot but I didn't see any change ( Thinking about it I should have copied the apps aswel :) ).... All this Rom Porting is still Knowledge I have not aquired yet... Can you tell :laugh: It's been fun having a little hack around on it.

Back to something I know for sure tho..

I would recommend adding the following files the rom, all of them can be liberated from the current SDE Rom to support the us:

/system/libtcl-ril.so
/system/xbin/chat
/etc/ppp/inti_pppd_datakey
/etc/ppp/ip-up-datakey
/etc/ppp/ip-down-datakey
/etc/ppp/peers/datakey
/etc/chatscripts/datakey_start
/etc/chatscripts/datakey_stop
/etc/usb_modeswitch/1bbb_f000
/etc/ppp/write_secrets

I think pppd and usb_modeswitch as welll as the correct /etc/permissions/ file and the hso.ko kernel object.

There is also a System UsbKeyManager.apk on the offical/SDE roms which archos use to for Connection Initialization and device insertion detection. You/someone could port that over although I'd probably leave it in favour of lower level method.....

I've probably missed something, but no one dies as a result so I can sleep easy.....:cool:
[Gen9 Android Development] Quinny899:
As you can see, themes and custom launchers are working fine, as are taking screenshots: