Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 2254d5f

Browse files
committed
Fix firmware loading
1 parent f8cd92d commit 2254d5f

23 files changed

+984
-974
lines changed

buildroot/package/recovery/init

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,22 @@
1515
# However that can fail during boot due to our initrd ramdisk not being mounted in time
1616
# Retry any pending requests
1717
(cd /sys/class/firmware
18-
for F in *; do
19-
if [ -d "$F" ]; then
20-
echo 1 > "$F/loading"
21-
cat "/lib/firmware/${F/!//}" > "$F/data"
22-
echo 0 > "$F/loading"
23-
fi
18+
while [ "$(ls | wc -l)" != "1" ]; do
19+
for F in *; do
20+
if [ -d "$F" ]; then
21+
fw1="/lib/firmware/${F/!//}"
22+
fw2="$(echo "$fw1" | sed 's/\..*\././')"
23+
echo 1 > "$F/loading"
24+
for fw in "$fw1" "$fw2"; do
25+
if [ -e "$fw" ]; then
26+
cat "$fw" > "$F/data"
27+
break
28+
fi
29+
done
30+
echo 0 > "$F/loading"
31+
fi
32+
done
33+
sleep 1
2434
done
2535
echo 1 > timeout)
2636

recovery/translation_ar.ts

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -342,91 +342,91 @@ WARNING: This will erase all data on your SD card</source>
342342
<translation>SD اعداد بطاقة</translation>
343343
</message>
344344
<message>
345-
<location filename="mainwindow.cpp" line="253"/>
345+
<location filename="mainwindow.cpp" line="256"/>
346346
<source>Please wait while NOOBS initialises</source>
347347
<translation type="unfinished"></translation>
348348
</message>
349349
<message>
350-
<location filename="mainwindow.cpp" line="341"/>
351-
<location filename="mainwindow.cpp" line="1280"/>
352-
<location filename="mainwindow.cpp" line="1841"/>
350+
<location filename="mainwindow.cpp" line="344"/>
351+
<location filename="mainwindow.cpp" line="1287"/>
352+
<location filename="mainwindow.cpp" line="1855"/>
353353
<source>RECOMMENDED</source>
354354
<translation>اوصي</translation>
355355
</message>
356356
<message>
357-
<location filename="mainwindow.cpp" line="593"/>
358-
<location filename="mainwindow.cpp" line="612"/>
357+
<location filename="mainwindow.cpp" line="596"/>
358+
<location filename="mainwindow.cpp" line="615"/>
359359
<source>Confirm</source>
360360
<translation>تاكيد</translation>
361361
</message>
362362
<message>
363-
<location filename="mainwindow.cpp" line="1164"/>
363+
<location filename="mainwindow.cpp" line="1171"/>
364364
<source>Error downloading distribution list from Internet</source>
365365
<translation type="unfinished"></translation>
366366
</message>
367367
<message>
368-
<location filename="mainwindow.cpp" line="1632"/>
368+
<location filename="mainwindow.cpp" line="1646"/>
369369
<source>Network access is required to use NOOBS without local images. Please select your wifi network in the next screen.</source>
370370
<translation type="unfinished"></translation>
371371
</message>
372372
<message>
373-
<location filename="mainwindow.cpp" line="1640"/>
373+
<location filename="mainwindow.cpp" line="1654"/>
374374
<source>Wired network access is required to use NOOBS without local images. Please insert a network cable into the network port.</source>
375375
<translation type="unfinished"></translation>
376376
</message>
377377
<message>
378-
<location filename="mainwindow.cpp" line="1755"/>
378+
<location filename="mainwindow.cpp" line="1769"/>
379379
<source>Are you sure you want to reformat the drive &apos;%1&apos; for use with NOOBS? All existing data on the drive will be deleted!</source>
380380
<translation type="unfinished"></translation>
381381
</message>
382382
<message>
383-
<location filename="mainwindow.cpp" line="143"/>
383+
<location filename="mainwindow.cpp" line="146"/>
384384
<source>Error mounting settings partition</source>
385385
<translation>خطا في تركيب قسم إعدادات</translation>
386386
</message>
387387
<message>
388-
<location filename="mainwindow.cpp" line="144"/>
388+
<location filename="mainwindow.cpp" line="147"/>
389389
<source>Persistent settings partition seems corrupt. Reformat?</source>
390390
<translation>تقسيم الأعدادات الدائم يبدو فاسد. إعادة صيغة؟</translation>
391391
</message>
392392
<message>
393-
<location filename="mainwindow.cpp" line="151"/>
393+
<location filename="mainwindow.cpp" line="154"/>
394394
<source>Reformat failed</source>
395395
<translation>إعادة الصيغة فشلت</translation>
396396
</message>
397397
<message>
398-
<location filename="mainwindow.cpp" line="151"/>
398+
<location filename="mainwindow.cpp" line="154"/>
399399
<source>SD card might be damaged</source>
400400
<translation>معطوبة SD قد تكون بطاقة</translation>
401401
</message>
402402
<message>
403-
<location filename="mainwindow.cpp" line="588"/>
403+
<location filename="mainwindow.cpp" line="591"/>
404404
<source>Warning: this will install the selected Operating System(s). All existing data on the SD card will be overwritten, including any OSes that are already installed.</source>
405405
<translation>بما في ذلك اي أنظمه تثبيت مثبته بالفعل.SD تحذير: سيؤدي ذلك إلى تثبيت نظام (أنظمه) التشغيل المحددة. ستتم الكتابة فوق كافة البيانات الموجودة علي بطاقة.</translation>
406406
</message>
407407
<message>
408-
<location filename="mainwindow.cpp" line="689"/>
409-
<location filename="mainwindow.cpp" line="1178"/>
408+
<location filename="mainwindow.cpp" line="692"/>
409+
<location filename="mainwindow.cpp" line="1185"/>
410410
<source>Error</source>
411411
<translation>خطا</translation>
412412
</message>
413413
<message>
414-
<location filename="mainwindow.cpp" line="344"/>
414+
<location filename="mainwindow.cpp" line="347"/>
415415
<source>INSTALLED</source>
416416
<translation>مثبت</translation>
417417
</message>
418418
<message>
419-
<location filename="mainwindow.cpp" line="706"/>
419+
<location filename="mainwindow.cpp" line="709"/>
420420
<source>NOOBS v%1 - Built: %2</source>
421421
<translation type="unfinished"></translation>
422422
</message>
423423
<message>
424-
<location filename="mainwindow.cpp" line="806"/>
424+
<location filename="mainwindow.cpp" line="809"/>
425425
<source>Display Mode Changed</source>
426426
<translation>نمط العرض تغير</translation>
427427
</message>
428428
<message>
429-
<location filename="mainwindow.cpp" line="738"/>
429+
<location filename="mainwindow.cpp" line="741"/>
430430
<source>HDMI preferred mode</source>
431431
<translation>المفضل HDMI نمط</translation>
432432
</message>
@@ -441,103 +441,103 @@ WARNING: This will erase all data on your SD card</source>
441441
<translation>إعدادات التقسيم المتزايد</translation>
442442
</message>
443443
<message>
444-
<location filename="mainwindow.cpp" line="590"/>
444+
<location filename="mainwindow.cpp" line="593"/>
445445
<source>SD card</source>
446446
<translation>بطاقة SD</translation>
447447
</message>
448448
<message>
449-
<location filename="mainwindow.cpp" line="590"/>
449+
<location filename="mainwindow.cpp" line="593"/>
450450
<source>drive</source>
451451
<translation>محرك</translation>
452452
</message>
453453
<message>
454-
<location filename="mainwindow.cpp" line="613"/>
454+
<location filename="mainwindow.cpp" line="616"/>
455455
<source>Warning: incompatible Operating System(s) detected. The following OSes aren&apos;t supported on this revision of Raspberry Pi and may fail to boot or function correctly:</source>
456456
<translation>التالي لم يدعم على هذا تنقيح النسبة الثابتة توت عليق وقد يخفق في الاقلاع أو إشتغال بشكل صحيح OSes تحذير: أنظمة التشغيل الغير متوافقة إكتشفت:</translation>
457457
</message>
458458
<message>
459-
<location filename="mainwindow.cpp" line="655"/>
459+
<location filename="mainwindow.cpp" line="658"/>
460460
<source>The install process will begin shortly.</source>
461461
<translation>ستبدا عمليه التثبيت قريبا.</translation>
462462
</message>
463463
<message>
464-
<location filename="mainwindow.cpp" line="677"/>
464+
<location filename="mainwindow.cpp" line="680"/>
465465
<source>OS(es) installed</source>
466466
<translation>OS (es) مثبت</translation>
467467
</message>
468468
<message>
469-
<location filename="mainwindow.cpp" line="678"/>
469+
<location filename="mainwindow.cpp" line="681"/>
470470
<source>OS(es) Installed Successfully</source>
471471
<translation>OS (es) ثبت بنجاح</translation>
472472
</message>
473473
<message>
474-
<location filename="mainwindow.cpp" line="742"/>
474+
<location filename="mainwindow.cpp" line="745"/>
475475
<source>HDMI safe mode</source>
476476
<translation>HDMI الوضع الأمن</translation>
477477
</message>
478478
<message>
479-
<location filename="mainwindow.cpp" line="746"/>
479+
<location filename="mainwindow.cpp" line="749"/>
480480
<source>composite PAL mode</source>
481481
<translation>وضع PAL المركب</translation>
482482
</message>
483483
<message>
484-
<location filename="mainwindow.cpp" line="750"/>
484+
<location filename="mainwindow.cpp" line="753"/>
485485
<source>composite NTSC mode</source>
486486
<translation>وضع NTSC المركب</translation>
487487
</message>
488488
<message>
489-
<location filename="mainwindow.cpp" line="807"/>
489+
<location filename="mainwindow.cpp" line="810"/>
490490
<source>Display mode changed to %1
491491
Would you like to make this setting permanent?</source>
492492
<translation>تم تغيير وضع العرض إلى %1
493493
هل ترغب في جعل هذا الاعداد دائما ؟</translation>
494494
</message>
495495
<message>
496-
<location filename="mainwindow.cpp" line="1164"/>
497-
<location filename="mainwindow.cpp" line="1505"/>
498-
<location filename="mainwindow.cpp" line="1515"/>
496+
<location filename="mainwindow.cpp" line="1171"/>
497+
<location filename="mainwindow.cpp" line="1516"/>
498+
<location filename="mainwindow.cpp" line="1526"/>
499499
<source>Download error</source>
500500
<translation>خطا في التحميل</translation>
501501
</message>
502502
<message>
503-
<location filename="mainwindow.cpp" line="1178"/>
503+
<location filename="mainwindow.cpp" line="1185"/>
504504
<source>Error parsing list.json downloaded from server</source>
505505
<translation>خطا في توزيع القائمة. json تحميلها من الخادم</translation>
506506
</message>
507507
<message>
508-
<location filename="mainwindow.cpp" line="1398"/>
508+
<location filename="mainwindow.cpp" line="1405"/>
509509
<source>Needed</source>
510510
<translation>بحاجة</translation>
511511
</message>
512512
<message>
513-
<location filename="mainwindow.cpp" line="1399"/>
513+
<location filename="mainwindow.cpp" line="1406"/>
514514
<source>Available</source>
515515
<translation>متاح</translation>
516516
</message>
517517
<message>
518-
<location filename="mainwindow.cpp" line="1505"/>
518+
<location filename="mainwindow.cpp" line="1516"/>
519519
<source>Error downloading meta file</source>
520520
<translation>حدث خطأ أثناء تنزيل ملف ميتا</translation>
521521
</message>
522522
<message>
523-
<location filename="mainwindow.cpp" line="1515"/>
523+
<location filename="mainwindow.cpp" line="1526"/>
524524
<source>Error writing downloaded file to SD card. SD card or file system may be damaged.</source>
525525
<translation>حدث خطأ أثناء كتابة الملف الذي تم تنزيله إلى بطاقة SD . قد تتلف بطاقة SD أو نظام الملفات.</translation>
526526
</message>
527527
<message>
528-
<location filename="mainwindow.cpp" line="1754"/>
528+
<location filename="mainwindow.cpp" line="1768"/>
529529
<source>Reformat drive?</source>
530530
<translation>أعاده تهيئه محرك الاقراص ؟</translation>
531531
</message>
532532
<message>
533-
<location filename="mainwindow.cpp" line="925"/>
534-
<location filename="mainwindow.cpp" line="1631"/>
535-
<location filename="mainwindow.cpp" line="1639"/>
533+
<location filename="mainwindow.cpp" line="928"/>
534+
<location filename="mainwindow.cpp" line="1645"/>
535+
<location filename="mainwindow.cpp" line="1653"/>
536536
<source>No network access</source>
537537
<translation>لا يوجد وصول إلى الشبكة</translation>
538538
</message>
539539
<message>
540-
<location filename="mainwindow.cpp" line="926"/>
540+
<location filename="mainwindow.cpp" line="929"/>
541541
<source>Wired network access is required for this feature. Please insert a network cable into the network port.</source>
542542
<translation>مطلوب الوصول إلى الشبكة السلكية لهذه الميزة. الرجاء إدخال كبل شبكه اتصال في منفذ الشبكة.</translation>
543543
</message>

0 commit comments

Comments
 (0)