-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODROID-C2: Missing bl301.bin source code #26
Comments
I can now successfully wake-up my C2 using the HK IR-remote from the always-on suspended state with Kwiboo@c31b6f7 |
Hello, Kwiboo. |
@JeonghwaCho thanks for adding the bl301/scp_task source code. I suspected that there was some odroidc2 specific changes, I used the odroidc2 code from uboot-2015-12-15-685bb0bc6f.tar.gz and merged some p200 changes from my amlogic-v2015.01-20160701 tree. Will try to make IR wake-up to work with minimum changes using your tree with the added bl301 code going forward. I was having problem getting the updated bl2 in my tree to boot using eMMC (SD worked fine) and it turned out the newer |
There is now a odroidc2-v2015.01-remote-power-on branch with a small amount of changes to get power-on from power-off state using HK ir-remote working (resume from suspend state do not work). LibreELEC-master test-image: https://www.dropbox.com/s/rm32sej9bf7ius7/LibreELEC-Odroid_C2.aarch64-8.0-devel-20160813173106-r23611-gebc8203.img.gz?dl=0 |
@Kwiboo Thanks a lot for sharing your code. And about bl1.bin.hardkernel binary, it's a difficult structure from AMLogic original released one. (I think you already know it.). To release a same image regardless the boot storage, SD or eMMC, we adjusted header structures including MBR part and made some utils to build sha checksum. And for the bl2.bin version, we have no plan to update it, but we're checking the newer version of u-boot firmware to adjust suspend/resume. If you have any idea or request, we can talk on the following forum thread. :) |
@Kwiboo
|
@JeonghwaCho feel free to cherry pick the commits you think is safe to include, I am currently working on CEC wakeup in my odroidc2-v2015.01-cec-power-on branch and can now also power on using CEC (this branch replaces the 'Disable CEC wakeup' commit with a "working" CEC handler). LibreELEC-master cec+remote wakeup test-image: https://www.dropbox.com/s/jj78rdc7gwi3k9v/LibreELEC-Odroid_C2.aarch64-8.0-devel-20160817133009-r23641-ge6dbce4.img.gz?dl=0 As for blX I have no real question and I have settled my curiosity with Kwiboo@6d0a176 where I can modify the 20160701 bl2 and make it boot from both SD and eMMC. It is a very dirty hack and limits the bl21 size from 3k to 2k due to realignments but was the best I could do without any access to blX source code. I will however make an attempt to update bl30/31 to the 20151205 version as that version adds 'wait for interrupt' handling to the scp_task power-key detection loop and "worked" with current bl2 in my previous tests. |
Closing this issue as most code is merged, see #32 for the final cec-wakeup code changes |
I am trying to get suspended wake-up with ir-remote to work on the ODROID-C2 as this feature seems to have better support in the Amlogic 20160504 and 20160701 u-boot/scp_task code.
Currently have the bl2/bl21/bl30/bl301/bl31 from 20160701 running on my ODROID-C2 but it is missing some modifications you have made to bl301/scp_task (e.g. blue led is still active when shutdown).
Is it possible for you to share the source code for the bl301.bin/scp_task changes in ea13764 and ee914ab?
You can see https://github.com/Kwiboo/u-boot for my work-in-progress repo.
Cross compile on x86_64 and use
dd if=fip/u-boot.bin of=<sd-card> conv=fsync bs=512 seek=1
to write blX+u-boot to a sd-card.The text was updated successfully, but these errors were encountered: