Re: Hikey board (620) with Fedora 28 minimal cannot boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 05/22/2018 03:59 AM, Jeremy Linton wrote:
> Hi,
> 
> Just a quick note here, per IRC this morning in case someone finds this
> but not that conversation.
> 
> 
> On 05/18/2018 12:06 PM, Zamir SUN wrote:
>>
>>
>> On 05/17/2018 08:41 PM, Zamir SUN wrote:
>>>
>>>
>>> On 05/16/2018 01:08 AM, Jeremy Linton wrote:
>>>> Hi,
>>>>
>>>> On 05/14/2018 10:26 AM, Zamir SUN wrote:
>>>>> Hi,
>>>>>
>>>>> Today I am trying my HikeyBoard (620) with
>>>>> Fedora-Minimal-28-1.1.aarch64.raw.xz. It simply cannot boot.
>>>>
>>>> So, two quick questions. What firmware & version are you using, and
>>>> have
>>>> you tried booting one of the installer images?
>>>>
>>>> (I tend to use the server iso image, and have had a decent bit of luck
>>>> with it).
>>>
>>> Thanks for the suggestions.
>>>
>>> I believe I haven't updated firmware after Fedora 27 released. I'll try
>>> the installer way later when I have some time.
>>>
>>
>> Hi Jeremy,
>>
>> I updated to the newest firmware on Linaro website[1]. But boot still
>> stuck in "EFI stub: Exiting boot services and installing virtual address
>> map...". I flashed the firmware from your github[2] and the dracut
>> timeout error is still there. I am posting the console log from the UART
>> here[3].
> 

Hi Jeremy,

> That log looks suspiciously like the hi6220_reset driver being missing
> from the initrd. Regenerating it with dracut --add-drivers
> hi6220_reset.ko should may allow SD booting. I tested USB boot this
> weekend and it works, so the problem seems isolated to SD at the moment.
> 
>>
>> Addition note that might be useful:
>> 1. The guide of flashing the firmware in[4] do not work for me. After
>> flashing l-loader.bin I cannot flash ptable-*.img(it just hang there
>> without any progress). When I see [5] I tried to flash the recovery.bin
>> first then it works.
>> 2. I cannot type in anything using minicon after system boot to anaconda
>> text installer or dracut emergency shell. So I cannot install the system
>> myself or trying to get more logs. However I can edit the grub menu via
>> console, still not sure why.
> 
> This is likely an upstream edk2 bug. I've seen a couple patches for it,
> and integrated the one from the linaro edk2 repo, but i'm guessing its
> not working properly. To work around the problem pressing 'esc' during
> the "...." boot, will exit to the UEFI BDS menus. From there simply
> booting the device should allow you to interact with grub/etc as normal.
> Starting the BDS seems to fix whatever is going wrong (although I didn't
> mention you should double check that your not using XON/XOFF flow control).
> 

Thanks for the fruitful info. Actually your firmware works fine. The
reason why I cannot type anything, as you mentioned, is because minicom
set Hardware Flow Control to YES. Now I can type in after setting it to NO.

And thanks for mentioning you are installing to USB stick. I just tried
installing to USB stick and it works(actually I installed to a Samsung
mSD card reader with my SD card inserted).

However, after I get it running, I tried to add "hi6220_reset" to dracut
config and regenerated the initramfs, then boot from SD (directly from
the board), and it still cannot boot. I copied the log out[6] in case it
is useful for development.

I also tried to install directly to the SD card, but it failed in
creating label on /dev/mmcblk1. I make the installer drop to shell and
did not see the mmcblk1 actually.

One more thing that worth mentioning, I tried to use another cheap mSD
reader to boot the system after installation, but it seems the cheap mSD
simply cannot boot. So I assume there are compatible issue there. The
mSD reader that don't work is
Bus 002 Device 018: ID 14cd:1212 Super Top microSD card reader (SY-T18)


HTH. Thanks again for your help!

[6] https://paste.fedoraproject.org/paste/CvO988-TC~MD~~8NY1AaCw
[7] https://paste.fedoraproject.org/paste/GSkGQLOO4zPN84gMODnhZw
> 
>> 3. I did not see anything special with earlycon=pl011,0xf7113000
>> configured.
>>
>> [1] https://releases.linaro.org/96boards/hikey/linaro/binaries/latest/
>> [2] https://github.com/jlinton/OpenPlatformPkg
>> [3] https://paste.fedoraproject.org/paste/cchgFYr~5R6YbjfGm4ZgNg
>> [4]
>> https://github.com/96boards/documentation/wiki/HiKeyUEFI#flash-binaries-to-emmc-
>>
>> [5]
>> https://www.96boards.org/documentation/consumer/hikey/installation/board-recovery.md.html
>>
>>
>> So can you help with the second point (typing on console)? In that way I
>> can at least debug more myself.
>>
>>>>
>>>>>
>>>>> I confirmed the xz image has the same hash as is shown on the mirror.
>>>>> I. used the following command to write to my TF card.
>>>>> xzcat Fedora-Minimal-28-1.1.aarch64.raw.xz | sudo dd status=progress
>>>>> bs=4M of=/dev/mmcblk0
>>>>>
>>>>> The system failed in dracut init queue timeout, with a warning
>>>>> "Warning:
>>>>> /dev/disk/by-uuid/9a926ac9-5938-4539-bb79-72f87b36095f does not
>>>>> exist  "
>>>>>
>>>>> However I confirmed the uuid is right for my partition.
>>>>>
>>>>> Besides, I cannot type anything via minicon to it so I cannot really
>>>>> debug more right now. I am posting the last block of message via UART.
>>>>>
>>>>> So anyone have some hints for this? Thanks in advance!
>>>>>
>>>>> (P.S. Fedora 27 works fine on my hikey board).
>>>>>
>>>>>
>>>>> [  222.639468] dracut-initqueue[468]: Warning: dracut-initqueue
>>>>> timeout
>>>>> - starts
>>>>> [  222.639909] dracut-initqueue[468]: Warning: Could not boot.
>>>>>
>>>>>            Starting Setup Virtual Console...
>>>>>
>>>>> [  OK  [  222.716760] audit: type=1130 audit(1520288415.819:14): pid=1
>>>>> uid=0 au'
>>>>> ] Started Setup [  222.738436] audit: type=1131
>>>>> audit(1520288415.819:15): pid=1'
>>>>> Virtual Console.
>>>>>
>>>>>            Starting Dracut Emergency Shell...
>>>>>
>>>>> [  222.825449] audit: type=1131 audit(1520288415.929:16): pid=1 uid=0
>>>>> auid=4294'
>>>>> Warning: /dev/disk/by-uuid/9a926ac9-5938-4539-bb79-72f87b36095f
>>>>> does not
>>>>> exist
>>>>>
>>>>>
>>>>> Generating "/run/initramfs/rdsosreport.txt"
>>>>>
>>>>> [  222.897318] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  222.956555] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  222.967237] print_req_error: 6 callbacks suppressed
>>>>>
>>>>> [  222.967243] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  222.985808] print_req_error: I/O error, dev mmcblk0, sector 0
>>>>>
>>>>> [  222.991640] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  223.001405] Buffer I/O error on dev mmcblk0, logical block 0, async
>>>>> page read
>>>>> [  223.032457] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.089436] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.100132] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  223.114267] print_req_error: I/O error, dev mmcblk0, sector 0
>>>>>
>>>>> [  223.120128] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  223.129994] Buffer I/O error on dev mmcblk0, logical block 0, async
>>>>> page read
>>>>> [  223.176307] print_req_error: I/O error, dev mmcblk0, sector 0
>>>>>
>>>>> [  223.182146] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  223.211348] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.268935] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.279748] print_req_error: I/O error, dev mmcblk0, sector 1
>>>>>
>>>>> [  223.285597] print_req_error: I/O error, dev mmcblk0, sector 2
>>>>>
>>>>> [  223.313471] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.373025] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.442453] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.499139] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.533285] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.592543] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.663611] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.723301] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>> [  223.757851] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot
>>>>> req
>>>>> 400000H)
>>>>> [  223.817927] mmc_host mmc0: Bus speed (slot 0) = 99200000Hz (slot
>>>>> req
>>>>> 1000000)
>>>>>
>>>>
>>>
>>
> 

-- 
Ziqian SUN (Zamir)
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
Want to know more about Fedora?
Visit https://fedoraproject.org/wiki/
Ready to contribute? See https://whatcanidoforfedora.org/
_______________________________________________
arm mailing list -- arm@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to arm-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/arm@xxxxxxxxxxxxxxxxxxxxxxx/message/V3467T37ORWQO2WVOBBP2HJM4ZSSI4GQ/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux