+ Reply to Thread
Results 1,101 to 1,120 of 2415
[project]Port android to meizu M8
This is a discussion on [project]Port android to meizu M8 within the Meizu M8 Android forums, part of the M8 Firmware category; Originally Posted by lang2 If somebody can confirm that sound works, I'll do some cleanup and roll another set of ...
-
02-22-2010 #1101Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 PostsGreat! but when providing a link we will need to add a keynote like problems with pet ts eo.
I have M8 FE and for me it works!Punchlinegott, could you build a dualboot package wit the above link and try again if sound works?Punchlinegott: the pre-made xip.bin doesn't have sound turned on. I later on posted a kernel zImage that has it enabled.
If you are unable to do let me know, then i will try and build one for you that i can upload to rapidshare or so..?
lang2, look here, could you be so kind to upload the Zimage used in the dualboot FW package you provided this to be able to build other FW packages? Thanks.I later on posted a kernel zImage that has it enabled.
maybe get a stiffi :D

btw, i am still looking on how to mod tinyloader to load android from a second partition from /disk to gain a more functional android, but i am scared to f*** my SE without serial.
Anyone hear something about banxian? He might be able to help us to do this..
-
02-22-2010 #1102Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 Posts
-
02-22-2010 #1103Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsIt's not tinyloader's job to load android. The loader loads kernel only and when that fully boots, it look for init which then load Android. To achieve what you want is not hard, for starters, you can dump the content of my system.img into your 2nd partition and in my startup scripts, mount your 2nd partition instead /mnt/disk/system.img..... But yeah, if you don't have serial port you better be careful anyway.
This reminds me that I missed one piece of information last time I posted my instruction: the init script. So here it is. I'll find some time to update wiki as well:
HTML Code:#!/_bin/sh export PATH=/_bin # lang2's stuff #echo "lang2 hacking...." mkdir /sys /proc /mnt /mnt/disk /system mount /sys mount /proc mdev -s mount -t vfat -o rw /dev/mmcblk0p5 /mnt/disk ls /mnt/disk mount -o loop /mnt/disk/system.img /system mkdir /system/data echo "creating /data" mount --bind /system/data /data mkdir /sdcard mount --move /mnt/disk /sdcard rm -rf /data/* echo "Cleaning up _bin..." rm -rf /_bin echo "Calling init.real...." /init.real
-
02-22-2010 #1104Dutch Moderator
- Join Date
- Jan 2009
- Location
- The Netherlands
- Posts
- 1,583
- Thanks
- 117
Thanked 173 Times in 72 PostsI am messed up, can somebody link me to the latest zImage and system.img so i can build my own dualboot?
I have no clue which system.img and zImage has sound enabled/latest version.
I want to test sound also with my M8 FE.
Thanks in advance.Ben je Nederlands?
Dan kan je ook gewoon in de Nederlandse sectie reageren en vragen: http://www.meizume.com/dutch
-
02-23-2010 #1105Junior Member
- Join Date
- Mar 2009
- Location
- GERMANY
- Posts
- 76
- Thanks
- 3
Thanked 2 Times in 2 Posts@evow04 would be nice if you can build an dualboot image for me because i don't know how it works. rapidshare would be nice.
EDIT: I tried to bulit a dualboot image but when i try to start android phone starts vibnrating and error message is: ext2-fs warning: mounting unchecked fs, running e2fsck is recommended
mkdir: cannot create /system/data : File exists
creating /data
cleaning up _bin...
calling init.real....
segmentation fault
kernel panic - not syncing: attempted to kill init!
rebooting in 100 sec..
also there are few lines before it shows the disk contend in blue and green
mkdir: cannot create directory /sys file exists
mkdir: cannot create directory /proc file exists
mkdir: cannot create directory /sytem file existsLast edited by Punchlinegott; 02-23-2010 at 05:12 PM.
-
02-24-2010 #1106Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 Poststested sound with last release on my fe -> didnt worked.
But i noticed that the noise which came out of the speaker is gone.
It sounded like the speaker was at highest volume.
Maybe its just a vol setting. i will have a look at the logs with my serial cable this evening i think.
nice would be: Turn android the right way round (cause we dont have a accrelometer right now running (btw the driver for this is in android if anyone wants to do researcho n how to use it))
i will post my function which controls clocks and hardware into the wiki this evening. then the phone wont get this warm in linux mode.
Didnt got further with my serial programming as im not the native linux programmer
but i will but souzrces into the wiki to show it.
PS an older android version on my FE has sound. just tried. Heared the noise, but had no sd so no music
So support should be there
PPS just used the dualboot and used android... you cant imagine how i fuckin want to get this thing running

WE NEED MORE SKILLED DEVS
Last edited by r3wDy; 02-24-2010 at 03:42 PM.
-
02-24-2010 #1107Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 PostsBTW Link to cpu handbook
?? S3C64X0 ?? ???? - S3C6410 User Manual Rev1.20 090213
P.S.
I will write a linux device driver with some ioctls for reading/writing registers and calling functions like setBlockPower or SwitchRadioOn. This seems the easiest way to access and ciew them from android.
PPS no sound driver is loaded in the latest amdoird kernel, i looked in dmesg and didnt found anything. Maybe check the .config file.
PPPS
i want to install andoird in a seperate parition. i have a partition. Next thing i would to is to mount system.img and copy those files to this parition. Where i need to change the script for mounting this?
should i do a remount rw on the rootfs and change this in init.rc?
PPPPS (some more :P)
updated the GSM processor page in the wiki with most of my knowledge.Last edited by r3wDy; 02-25-2010 at 10:06 AM.
-
02-25-2010 #1108Member
- Join Date
- Aug 2009
- Location
- Austria
- Posts
- 222
- Thanks
- 44
Thanked 10 Times in 10 Postsi dont know if this is usefull.
i try to make an app to establish a ras connection (because it is not possible to connect to mobilkom austria =>firmware bug).
on the way to this i made a function to list all ras-devices.
result:
NAME / TYPE
Cellular Line / modem
Serial Cable on COM1 / direct
Serial Cable on COM2 / direct
USB cable / direct
Hayes COM9 /modem
RAS VPN Line 0 /vpn
RAS VPN Line 1 /vpn
RAS VPN Line 2 /vpn
RAS VPN Line 3 /vpn
RAS VPN Line 4 /vpn
is this info usefull for our baseband problem?
-
02-25-2010 #1109Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 Poststhe mux opens com1 and builds a virtual connection on com 7 and 9 (i think ^^) i winder that it showes a modem @ com 9... hum will read about this.
-
02-25-2010 #1110Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsYes it was turned off. I've made an dualboot image that's got sound driver enabled. On my SE, it triggers non-stop vibration
. Somebody already reported something like this I think. But the good thing is: it looks like the codec is detected alright. So I'll upload it later for some FE owner to try. Maybe they'll have better luck.
For this, you can use my instruction here: Build - Meizu Wiki. But instead of the init script there, use this one Bash | #!/_bin/sh export PATH=/_bin - Anonymous - Tns0jKzN - Pastebin.com instead. So basically:PPPS
i want to install andoird in a seperate parition. i have a partition. Next thing i would to is to mount system.img and copy those files to this parition. Where i need to change the script for mounting this?
should i do a remount rw on the rootfs and change this in init.rc?
1. Don't mount /Disk
2. Don't mount /sdcard
3. This is assuming that your native Linux partition is mmcblk0p6.
It would be interesting to see if vold can successfully mount the original /Disk or not.
Good luck. Anything I can do to help, let me know.
-
02-26-2010 #1111Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsSo here is a dualboot image with sound driver enabled. A bit of warning: because of the non-stop vibration, I pull out the battery when Android is still loading. The result: I lost all my data on /Disk. So I need to reinstall all my apps, etc. It might not happen to you.
Could somebody with a FE try it and tell us if you can listen to music, etc? Thanks,
xip-alsa-enabled-fe.zip
-
02-26-2010 #1112Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 PostsJust mounted system img and copied it all to my new partition. this evening i will create a kernel which mounts this partition to system. then i will see if i can boot adroid from this parition. would be very nice, as i could play around with android without changing xip everytime. and i think there i can too test my linux driver when i compile them as modules so i dont need to change xip evertime i try something with baseband. lookomg foreward to it. now i try the sound mod
SOundmod:
it just virated :P and vibrated and vibrated
so i vibrated my way to the music player, while vibrating i open it, selected a song, and then the sdcard mopunt seemed to got los 
May it got loose because of vibrations :P
:I could open the music app, there where my mp3s but when i wanted to play them, it said there is no sdcard. and then i wanst able to access the sdcard till restart.
and og : t vibrated :PLast edited by r3wDy; 02-26-2010 at 12:38 PM.
-
02-26-2010 #1113Freshman
- Join Date
- Dec 2009
- Location
- Tau Norway
- Posts
- 49
- Thanks
- 13
Thanked 0 Times in 0 Postsit is possible to get it to stop and vibrate?
-
02-27-2010 #1114Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 Postsr3wdy: oops, this is a bit embracing. But then again, it's not my code.

If I remember correctly, you use a FE, right? Then this is not good. I did have to hack some header to get it compiled. I'll see if I can revert that. On the up side, we have the vibration driver working.... just don't know how we did it. :D
-
02-27-2010 #1115Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsI tried a clean tree and still have the same problem. Can somebody confirm which kernel tree did you have the working sound? I'm using mdroid git from banxian. Was there a bill tree somewhere?
-
02-28-2010 #1116Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 Postsyes, the vibrator is very intersting ^^ i think its an gpio port which just goes high. Would be great if you could seperate this then we could build a vibrate driver for android.
To the sound: i have a kernel from bill, and i think the one banxian used was also one from bill. we had different kernel, one form aesop thsi was the first to run and then one from bill which had already some hw support.
Iwill have a look @ the sources and then i can surly seperate the driver
-
02-28-2010 #1117Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 Postssorry, i have been very busy & will be in the coming weeks cause i have a project i need to get out of the door asap

But it seems that it(= vibrate) is a bug so don not worry for now ?
yes there is, it is called linux-27-bill-m8.Was there a bill tree somewhere?
r3wDy, did you manage to install and load from a separate partition?
And where you going to install Zimage to a separate partition aswell since you said:Nice work guys!i could play around with android without changing xip everytime.
-
02-28-2010 #1118Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 Poststill now i ddnt managed to get it to bootz from partition. the problem is the initramfs. i need to modify it as i dont want to compile a whole android for me. I try to mount and edit the one from bills kernel. Should be able to mount system with this and the rest is on the partition.
The zimage is not on the partition.
(maybe we could thing of booting a really small kernel which then boots a zimage form the disk... this would be a perfect setup. anyone with linux knowledge who could do this??)
Okay fyi what im going to do next:
i have bills kernel. In bills kernel there is a initramfs which loads android. I will mount this ramfs and modify the initscript like shown above (mounting mtdblock/system as system parition) then i will compile this as a new kernel and flash it. Thsi then should mount my new android patition as system and start is from there. Then i will compile all drivers which going to be tested against my kernel sources and load them via adb as modules. so i can test wihtout changing the xip everytimeLast edited by r3wDy; 03-01-2010 at 02:02 PM.
-
Member who thanked r3wDy for the post:
-
03-01-2010 #1119Valued Member
- Join Date
- Aug 2008
- Location
- Belgium
- Posts
- 2,434
- Thanks
- 127
Thanked 189 Times in 130 Posts
-
03-02-2010 #1120Member
- Join Date
- Nov 2006
- Posts
- 101
- Thanks
- 0
Thanked 8 Times in 7 PostsRe vibration:
I think r3wdy must be right that it's a GPIO pin thing. Will look at the code to see if I can spot anything.
Also, could someone upload the bill's tree somewhere so that I can compare with the git tree? They're probably the same but I did find two alsa driver for FE in the git tree: one for 6410 and one for M8.
Re loading Android from a separate partition:
it should be simple enough. I've uploaded my initramfs here Hotfile.com: One click file hosting. One should be able to modify it slightly to work with separate partition. Check my previous post. When I lost my Disk last time, I actually made a separate partition as well so I might try it as well.
Similar Threads
-
PROJECT: Meizu M8 Nederlandse taal
By MaikelRunia in forum DutchReplies: 47Last Post: 09-02-2009, 10:11 AM -
Port Meizu OS to Samsung Omnia i900
By natedogg20050 in forum Modding & DevelopmentReplies: 8Last Post: 08-17-2009, 12:09 PM -
What does the Meizu Rockbox project need?
By Err0r in forum RockboxReplies: 21Last Post: 05-17-2008, 12:12 PM -
Meizu M8 Project On Temporary Hold
By Err0r in forum Meizu M8 NewsReplies: 68Last Post: 04-20-2008, 04:02 AM -
The USB port
By vipert in forum TechnicalReplies: 3Last Post: 05-03-2007, 04:03 PM




Reply With Quote
but like you say a perfect set-up... if any test needs to be done it would just be a question of overwriting a small item instead of all of it.
