Author: swordfish6975

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2016-5-7 19:33:21 | Show all floors
Ok, I still haven't found my serial console thingy, but I've done the USB host test. When using a generic USB hub, it did indeed go to sleep, but didn't wake up. The LED on the USB hub also blinked a few times (which means it was connected and disconnected a few times in a row). However, there are no issues at all when devices are connected without a USB hub.

Will test later today / tomorrow with a USB serial console (if I can find it). The DI image is currently building

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10458
Published in 2016-5-7 19:46:55 | Show all floors
Thanks for confirming my suspicions.

Interesting test for USB hub issue would be if you would execute following command before suspend:
  1. echo 0 > /sys/power/pm_async
Copy code

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2016-5-7 20:23:51 | Show all floors
Quick update:

1) the command doesn't help at all with the USB hub bug.
2) With DI driver patch, the suspend bug is still present (regarding lircd).
3) With the DI patch, the playback is perfectly OK now, even after suspend and resume!

Todo: find the damn serial console and test why lircd is flipping out the power button. I actually always wanted to put it to sleep through power button on remote, which works. But would still be fun to find out what's breaking things

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10458
Published in 2016-5-7 20:33:36 | Show all floors
Great, one down, two to go

Can you test following for lircd bug:
1. Build IR driver as a module: CONFIG_IR_SUNXI=m
2. add modprobe command before lircd in autostart.sh
3. after resume, please do rmmod & modprobe again
4. check if command works

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10458
Published in 2016-5-8 02:35:51 | Show all floors
Edited by jernej at 2016-5-7 19:55
Dima replied at 2016-5-7 13:23
Quick update:

1) the command doesn't help at all with the USB hub bug.

If you found your USB to serial adapter and you are interested in debugging suspend issues, then you could check these advices how to get some useful info about the problem: https://01.org/blogs/rzhang/2015 ... nd/hibernate-issues

3

threads

165

posts

1203

credits

Gold member

Rank: 6Rank: 6

credits
1203
Published in 2016-5-8 02:51:13 | Show all floors
Edited by Dima at 2016-5-8 03:46

Yup, just found the USB>serial adapter, will test more tomorrow :-)

EDIT: USB>serial adapter is dead. It isn't recognized (at all, it just give an error of device descriptor fail) by any of my computers so I assume it just doesn't work anymore. So will only the the modprobe thing tomorrow.

0

threads

29

posts

463

credits

Intermediate member

Rank: 3Rank: 3

credits
463
Published in 2016-5-8 22:14:35 | Show all floors
Edited by andrzejm at 2016-5-8 14:19

Latest emmc_install.sh seems to be broken. Image built yesterday. Script formated SD card instead of Flash and generated errors:
Creating partition table
/usr/bin/emmc_install.sh: line 44: parted: Input/output error
Creating first partition
/usr/bin/emmc_install.sh: line 47: parted: Input/output error

I noticed that device name of Flash and SD card has swapped, changing "DISK=/dev/mmcblk0" to "DISK=/dev/mmcblk1" fixed the issue and image was installed into flash

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10458
Published in 2016-5-9 01:07:21 | Show all floors
andrzejm replied at 2016-5-8 15:14
Latest emmc_install.sh seems to be broken. Image built yesterday. Script formated SD card instead of ...

I really didn't test this script with new kernel, but that would make sense. Now I wonder how the old script even worked. I will test it tomorrow and fix it. It seems that I could simplify it a bit.

Could you please test this scenario:
1. Install OpenELEC on eMMC (you already did)
2. Power off system
3. Insert non bootable SD card inside
4. Power on system
5. Does it boot properly?

0

threads

29

posts

463

credits

Intermediate member

Rank: 3Rank: 3

credits
463
Published in 2016-5-9 02:00:28 | Show all floors
Edited by andrzejm at 2016-5-8 18:03

No, it doesn't boot when non bootable SD card is inside. Nothing happens - blank screen and led is off.

4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10458
Published in 2016-5-9 02:22:25 | Show all floors
Then I will have to devise a test in U-Boot if SD card is present and U-Boot booted from eMMC. Any suggestions?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list