Jump to content

Advent Vega kernel source code now available!


Guest PaulOBrien

Recommended Posts

Guest ejtagle

Yep .. the compiled and the source lib does indeed give sound ... nice one ... BUT .... and there sadly always is a but ... the video seems to slow down when its viewed over HDMI ... the sound is sloooow, talking sounds like a movie where something bad is about to happen and they go running towards the victim and shout noooooooooooo in a way thats never ever going to result in something good happening ;)

http://pastebin.com/FD8FJR96

EDIT - ok seems fixed now ... seems changing sampling rate to 48000 for SPDIF resolves the problem, sound and video is as we'd expect it to be ..

#define MM_SPDIF_SAMPLING_RATE 48000

See anything adverse with doing this ?

edit 2 -- all appears fine --- Alpha3 has been released here

Cheers

Cass

There are no problems changing SPDIF sampling rate... ;) -- I am still working on RIL for the 3G modem... Seems it will take some time ... ;)

Link to comment
Share on other sites

There are no problems changing SPDIF sampling rate... ;) -- I am still working on RIL for the 3G modem... Seems it will take some time ... ;)

No probs mate .. take your time ... Give us something to put into Alpha4 :)

edit .. pm dude ..

cheers

Cass

Edited by Cass67
Link to comment
Share on other sites

Guest the_corvus

There are no problems changing SPDIF sampling rate... ;) -- I am still working on RIL for the 3G modem... Seems it will take some time ... ;)

What modem Vega has?

Corvus.

Link to comment
Share on other sites

Guest ejtagle

What modem Vega has?

Corvus.

It has a Huawei EM770W ... And there is also an alternate modem that can be fitted in the mini-PCIe connector ... There is a huawei generic RIL, but seems to be outdated and has several memory leaks ... I am trying to clean it up and update to the latest RIL specification ;)

Link to comment
Share on other sites

Guest the_corvus

It has a Huawei EM770W ... And there is also an alternate modem that can be fitted in the mini-PCIe connector ... There is a huawei generic RIL, but seems to be outdated and has several memory leaks ... I am trying to clean it up and update to the latest RIL specification ;)

Same as Wetab....

I am trying to fix it for some time... all my work is based in:

https://github.com/DerArtem/huaweigeneric-ril

and

https://github.com/DerArtem/android_device_toshiba_betelgeuse

That seems to be the most updated source. I'm waiting for some other changes to make a new image, but the first one works (i tested it), but android doesnt recognice the ppp0 link without the second one (the changes to fix GSM) and i didnt test it already... but seems that might work.

Some modifications was to send RFSWITCH=1 because C+FUN=1 doesnt works and dont activate Radio and this one: https://github.com/rbraken/wetab-ICS-device-tree/commit/a65b62a41b0273f7548103b42212cf68bd73bdf2 because signal gives us wrong command.

Anyway, any advance we will do on this will send to you.

Corvus.

Link to comment
Share on other sites

Eduardo,

We are getting reports of random reboots .. looks like a kernel panic..

http://pastebin.com/KEUXe5kM

http://pastebin.com/zrb6pG9J

Ive received 2 logs on this both with the same problem ... looks like the wifi device is playing up somewhere ..

Can you take a look ..

Edit - make that 6 logs .. all the same ....

edit 2 -- lovely crash when testing out a game ...

http://pastebin.com/pjJLsi4U

low memory ?

Cheers

Cass

Edited by Cass67
Link to comment
Share on other sites

Guest BillyBobJoe

Eduardo,

We are getting reports of random reboots .. looks like a kernel panic..

http://pastebin.com/KEUXe5kM

http://pastebin.com/zrb6pG9J

Ive received 2 logs on this both with the same problem ... looks like the wifi device is playing up somewhere ..

Can you take a look ..

Edit - make that 6 logs .. all the same ....

edit 2 -- lovely crash when testing out a game ...

http://pastebin.com/pjJLsi4U

low memory ?

Cheers

Cass

Hi Cass & Ed,

Just had a quick look at the logs and there seems to be some reference to kmalloc which could be a causing a himem type of issue. Should we not be using vmalloc instead to avoid any restrictions?

I could be way off track but just a thought.

Billy..

Link to comment
Share on other sites

Guest ejtagle

Eduardo,

We are getting reports of random reboots .. looks like a kernel panic..

http://pastebin.com/KEUXe5kM

http://pastebin.com/zrb6pG9J

Ive received 2 logs on this both with the same problem ... looks like the wifi device is playing up somewhere ..

Can you take a look ..

Edit - make that 6 logs .. all the same ....

edit 2 -- lovely crash when testing out a game ...

http://pastebin.com/pjJLsi4U

low memory ?

Cheers

Cass

WiFi problems seem to be related to some commands sent to the WiFi card before suspension that are not cancelled when the sdhci bus driver itself enters suspend... But, the sdhci driver then expects to get an answer ... Seems as a sdhci bug... Or perhaps, it is us that we keep WiFI and/or bluetooth on while suspended... Will try to get a fix for it ;)

Link to comment
Share on other sites

WiFi problems seem to be related to some commands sent to the WiFi card before suspension that are not cancelled when the sdhci bus driver itself enters suspend... But, the sdhci driver then expects to get an answer ... Seems as a sdhci bug... Or perhaps, it is us that we keep WiFI and/or bluetooth on while suspended... Will try to get a fix for it

Thought I removed the sysfs option to keep on in suspend.. was in Vega postboot script..

Link to comment
Share on other sites

Thought I removed the sysfs option to keep on in suspend.. was in Vega postboot script..

Hi cass,

you mean that commenting out the line in the /etc/vega_postboot.sh:

echo 1 > /sys/devices/platform/shuttle-pm-wlan/keep_on_in_suspend

could be the solution to the reboot problem?

edit: Well just had a reboot without having a suspend, but i will comment the line out just to see if it helps.

regards,

scanno

Edited by Scanno
Link to comment
Share on other sites

You're right. It is not the solution >_>

Its also not just related to sleep as im seeing while using tapatalk and terminal.. wfi messages are still apparent.. weird..

Edited by Cass67
Link to comment
Share on other sites

Guest treznorx

Eduardo,

We are getting reports of random reboots .. looks like a kernel panic..

http://pastebin.com/KEUXe5kM

http://pastebin.com/zrb6pG9J

Ive received 2 logs on this both with the same problem ... looks like the wifi device is playing up somewhere ..

Can you take a look ..

Edit - make that 6 logs .. all the same ....

edit 2 -- lovely crash when testing out a game ...

http://pastebin.com/pjJLsi4U

low memory ?

Cheers

Cass

I had the same problem on Gtab. I solved it by passing the .built-in flag to the mmc stack in the board sdhci file. I no longer get those errors, however I can also no longer turn off the wifi from the rom and turn it back on. Once it's off it stays off.

Link to comment
Share on other sites

I had the same problem on Gtab. I solved it by passing the .built-in flag to the mmc stack in the board sdhci file. I no longer get those errors, however I can also no longer turn off the wifi from the rom and turn it back on. Once it's off it stays off.

Does that include resuming from sleep?

Cheers

Cass

Link to comment
Share on other sites

Guest BillyBobJoe

Its also not just related to sleep as im seeing while using tapatalk and terminal.. wfi messages are still apparent.. weird..

Cass not sure if it helps but there is a typo in the init.harmony.rc

on device-removed-/sys/block/sda

umount /mnt/usbdrive

It should be unmount it may have nothing to do with the problem but I can't correct it right now.

Billy..

PS crashing all the time now lasts only 5-10 minutes

Link to comment
Share on other sites

Cass not sure if it helps but there is a typo in the init.harmony.rc

on device-removed-/sys/block/sda

umount /mnt/usbdrive

It should be unmount it may have nothing to do with the problem but I can't correct it right now.

Billy..

PS crashing all the time now lasts only 5-10 minutes

Yeah the crashing is a pita, but it appears app specific .. im running for hours now in stock browser doing all my posting on it with 0 crash... in tapatalk i can almost crash at will... seems not tied specifically to wifi access , more how the app used it id say... in this test anyway...

Never seen that unmount command, ill look into it but usually its umount.. maybe i was subliminally tinking unix when it sould have been something else ;)

Link to comment
Share on other sites

Guest brucelee666

Re. umount, I seen that in a log it came up command not recognised I think.

Didn't mention it because if you look in system/xbin as part of busybox umount is in there so I thought it was correct.

edit:- it was in one of the above pastebin logs "init: /init.harmony.rc: 192: invalid command 'umount'"

Edited by brucelee666
Link to comment
Share on other sites

Guest BillyBobJoe

Yeah the crashing is a pita, but it appears app specific .. im running for hours now in stock browser doing all my posting on it with 0 crash... in tapatalk i can almost crash at will... seems not tied specifically to wifi access , more how the app used it id say... in this test anyway...

Never seen that unmount command, ill look into it but usually its umount.. maybe i was subliminally tinking unix when it sould have been something else ;)

Cass,

Is there any chance that you will back out the squashFS as this may be causing a number of problems. If the are write errors due to the RO nature of the FS.

And frustrating as ever for poeople like me who can't mess about easily.

Billy..

Link to comment
Share on other sites

Cass,

Is there any chance that you will back out the squashFS as this may be causing a number of problems. If the are write errors due to the RO nature of the FS.

And frustrating as ever for poeople like me who can't mess about easily.

Billy..

Umm nope wont back out of it unless i see proof there is issues caused by it.. nothing should be writing to those filesystems at all, they are read only by default in normal devices... id need to remove a lot of stuff in aosp bui,d to make it fit and i dont want to have to do that if its not needed.

What makes you think the squashing is causing problems as i see 0 evidence to support this?

Its not so hard to work with really either, if your struggling i can send you the commands i use to get around... i use linux but there should be equivalents for windows if you use that OS.

Cass

Edited by Cass67
Link to comment
Share on other sites

Guest pizzaboy75

Cass,

Is there any chance that you will back out the squashFS as this may be causing a number of problems. If the are write errors due to the RO nature of the FS.

And frustrating as ever for poeople like me who can't mess about easily.

Billy..

I second that. At least for the alpha stage. it's a pain to make changes to the fs in order to test things out right now.

Link to comment
Share on other sites

Guest BillyBobJoe

Umm nope wont back out of it unless i see proof there is issues caused by it.. nothing should be writing to those filesystems at all, they are read only by default in normal devices... id need to remove a lot of stuff in aosp bui,d to make it fit and i dont want to have to do that if its not needed.

What makes you think the squashing is causing problems as i see 0 evidence to support this?

Its not so hard to work with really either, if your struggling i can send you the commands i use to get around... i use linux but there should be equivalents for windows if you use that OS.

Cass

Its not a biggy just in the last couple of hours I've been enjoying the ics build but I'm picking out a few typos that could be easily corrected.

In the in it.rc:

on early-init

# Set init and its forked children's oom_adj.

write /proc/1/oom_adj -16

Should change to oom_score_adj

Like I said just little things.

Billy..

Link to comment
Share on other sites

I second that. At least for the alpha stage. it's a pain to make changes to the fs in order to test things out right now.

Its a pain to strip out stuff thats not needed and still have a usable rom ;)

What do you need to change thats not writable?

I can upload a raw image from aosp for you to play in that may fit but it wont have any gapps inside.. or indeed most of the stock apps.. id need to recompile aosp and remove the languages to stand a chance of getting it all in there and even then i doubt it will fit ...

Its a tradeoff .. get the tools to work with what we have or not have any niceties and build a bear on your own.. i prefer from my perspective to have it all in there and work with the limitations..

Cass

Link to comment
Share on other sites

Its not a biggy just in the last couple of hours I've been enjoying the ics build but I'm picking out a few typos that could be easily corrected.

In the in it.rc:

on early-init

# Set init and its forked children's oom_adj.

write /proc/1/oom_adj -16

Should change to oom_score_adj

Like I said just little things.

Billy..

Thats the boot.img.. no matter what its always 100% read only in all devices...

Heh Nvidia put that line in too, no change from me..

Edited by Cass67
Link to comment
Share on other sites

Guest ejtagle

I also think there is no need to unsquash things... even /system/lib contents can be overriden by /system/vendor/lib ... So, no real need to build a nosquash system... And if you REALLY need RW access, there is a way using an overlay filesystem over the squashfs ... Google it, you will find it. But, it should be used just for development, and not as a daily feature, as, as Cass said, by default, device roms have /system mounted as RO.

Speaking of more interesting things, i have been looking at the Wifi errors while the tablet goes to suspend. This seems to be a bug of the Atheros driver, that is not honoring the suspend request, and keeps posting commands to the wifi card even after telling linux it is suspended... The sdhci stack has no provisions to deal with that, and tries to honor the commands by sending them... But the sdhci controller IS suspended, so it can't and it ends giving the errors we see...

Will have to study the Atheros driver a bit...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.