Seite 1 von 2 12 LetzteLetzte
Ergebnis 1 bis 10 von 15
  1. #1
    Benutzer
    Registriert seit
    14.08.2012
    Beiträge
    85
    Thanks
    24
    Thanked 15 Times in 10 Posts

    [fixed] AT7500 Bootargs Bug

    Hi morly,

    erstmal vielen Dank für Deine Super Arbeit und Dein Klasse Tool.

    Habe mit der AT7500 Box getestet. Funktioniert alles super, bis auf daß die Bootargs nicht ausgelesen werden und dargestellt werden.
    Vielleicht hast Du ja mal Zeit zu schaun ....

    Viele Grüße, Samoth

    P.S.

    bei Booten aus dem Flash mit HDMU Bootloader 6.0 erhalte ich folgendes:
    ================================================== ====

    AT7500:~# cat /proc/mtd
    dev: size erasesize name
    mtd0: 00060000 00020000 "Boot_firmware"
    mtd1: 00320000 00020000 "Kernel"
    mtd2: 0001fffe 00020000 "Fake_ROOT"
    mtd3: 0001fffe 00020000 "Fake_DEV"
    mtd4: 0001fffe 00020000 "Fake_APP"
    mtd5: 03c00000 00020000 "Real_ROOT"

    AT7500:~# fw_printenv
    Can't open /dev/mtd6: No such device

    Inhalt von fw_env.config
    ==================

    # Configuration file for fw_(printenv/saveenv) utility.
    # Up to two entries are valid, in this case the redundand
    # environment sector is assumed present.
    # MTD device name Device offset Env. size Flash

    sector size
    /dev/mtd6 0x00000000 0x00020000 0x20000


  2. #2
    Moderator Avatar von morly
    Registriert seit
    15.07.2012
    Ort
    Österreich
    Beiträge
    6.684
    Thanks
    789
    Thanked 2.764 Times in 1.357 Posts
    OK - die sollten auf mtd6 liegen, das wird aber bei dir nicht angezeigt.
    Nun die Frage - wird mtd6 verborgen oder wurden die Bootargs wo anders abgelegt (gibt einen ähnlichen Thread hier wo das Problem angesprochen wird - leider ohne Lösung)

    Problem ist also nicht direkt vom AT - sondern, dass uns mtd6 fehlt
    Warum tut es das???
    "Every Setback is a Set Up for a Comeback"


  3. #3
    VIP Avatar von santa
    Registriert seit
    07.05.2012
    Beiträge
    7.844
    Thanks
    1.070
    Thanked 5.005 Times in 1.790 Posts
    Ich sehe nicht den Sinn des auslesens der bootargs bei der at7500.
    Da entweder nur flash möglich ist mit bl5.xx oder bl6.00, oder wenn man multiboot nutzen will braucht man iboot oder wie das heißt.
    mfg santa

    GigaBlue Quad Plus -->Yamaha AV Receiver-->Panasonic Plasma

    derzeit noch in Betrieb:
    IPBox 9000, Technisat Digicorder HDS2+, AT 500



  4. #4
    Moderator Avatar von morly
    Registriert seit
    15.07.2012
    Ort
    Österreich
    Beiträge
    6.684
    Thanks
    789
    Thanked 2.764 Times in 1.357 Posts
    Trotzdem santa, mtd6 steht in der config ... ist aber nicht sichtbar,
    Haett mich halt interessiert
    Ging doch mal... oder versteckt iboot mtd
    "Every Setback is a Set Up for a Comeback"


  5. #5
    VIP Avatar von santa
    Registriert seit
    07.05.2012
    Beiträge
    7.844
    Thanks
    1.070
    Thanked 5.005 Times in 1.790 Posts
    Das ist noch aus bl5.xx Zeiten denke ich.
    Kann sein das man den wieder erst mit i2c oder so freischalten muss
    mfg santa

    GigaBlue Quad Plus -->Yamaha AV Receiver-->Panasonic Plasma

    derzeit noch in Betrieb:
    IPBox 9000, Technisat Digicorder HDS2+, AT 500



  6. #6
    Benutzer
    Registriert seit
    14.08.2012
    Beiträge
    85
    Thanks
    24
    Thanked 15 Times in 10 Posts
    Zitat Zitat von santa Beitrag anzeigen
    Das ist noch aus bl5.xx Zeiten denke ich.
    Kann sein das man den wieder erst mit i2c oder so freischalten muss
    @Santa: Kannst Du das bitte vielleicht noch ein wenig genauer beschreiben wie das freischalten geht ? Ich würds dann mal ausprobieren ...
    Grüße, Samoth


  7. #7
    Moderator Avatar von morly
    Registriert seit
    15.07.2012
    Ort
    Österreich
    Beiträge
    6.684
    Thanks
    789
    Thanked 2.764 Times in 1.357 Posts
    hast du ein device node:
    /dev/i2c-1

    - - - Aktualisiert - - -

    vergiss es - lies mal hier:
    http://www.hdmedia-universe.com/board/showthread.php?3491-Admin-Tool-Bootargs&p=40366&viewfull=1#post40366
    "Every Setback is a Set Up for a Comeback"


  8. #8
    Developer
    Registriert seit
    18.07.2012
    Ort
    Ridderkerk, Niederlande
    Beiträge
    634
    Thanks
    144
    Thanked 713 Times in 304 Posts
    Hello Morly, santa

    The info in fw_printenv for the AT7500/HS8200 is wrong and has been wrong in all git's from the beginning. For loader 6.00 it should read:
    Code:
    # Configuration file for fw_(printenv/saveenv) utility.
    # Up to two entries are valid, in this case the redundant
    # environment sector is assumed present.
    # MTD device name Device offset Env. size  Flash sector size
    /dev/mtd0         0x00040000    0x00020000 0x20000
    The most probable reason for this is that with loader 5.0X the bootargs actually used are not stored on an erase block boundary (shame on you, Fortis!), so santa may be right that this is an error inherited from the past. Fortis corrected this by moving the bootargs to an erase boundary in loader 6.00, so they are flashable in theory, although not through an .IRD file. The bootargs even contain a script (update_env) to update them.

    mtd6 in most Fortis boxes points to the user area, in stock firmware this would hold the /var directory and the plugins. In my solution for E2 in flash with loader 6.00 there indeed is no mtd6 any longer after mtd concatenation has taken place (that is when the kernel starts loading the application). For further info, see the documentation I wrote about loader 6.00 and running E2 with it. With loader 5.0X mtd6 would be present, but did not hold the boot args, so using fw_printenv would return rubbish anyway, and fw_setenv would destroy other data.

    The fix is simple: update the file fw_env.config_atevio7500 in the directory X/tdt/cvs/cdk/root/etc in your build environment and/or git with the info given above.

    Regards,

    Audioniek.
    Receivers: Rebox: RE-4000, 8000, 9000, 2200, 2210, 2220, 4200, 4210, 4220, 8220, 8500, SAB Unix Triple, Golden Media Spark TripleX, Amiko Alien 2+, Sogno Spark Revolution, Kathrein UFS910(1 & 14W)/912/913/922(CX24116 & AVL2108 tuners), Vizyon revolution 820HD PVR, AB IPBox 91HD/9000HD/9000HD rev.2, Xsarius Alpha HD10, nBox BKSA/BSLA/BXZB/BZZB, Vitamin HD 5000
    Sats: Astra 1, 2 & 3, Hotbird
    Main activity: building my own E2 images for Fortis receivers

  9. The Following 2 Users Say Thank You to Audioniek For This Useful Post:



  10. #9
    Moderator Avatar von morly
    Registriert seit
    15.07.2012
    Ort
    Österreich
    Beiträge
    6.684
    Thanks
    789
    Thanked 2.764 Times in 1.357 Posts
    Many thanks - maybe one can test it?
    Start AT and connect to box(!!)
    Change the file at:
    Code:
    toolpath_to_AT/AT_MORLY_bin/fw_env.config
    with the line provided above and Reload the bootargs in the Bootargs-Tab
    "Every Setback is a Set Up for a Comeback"

  11. The Following User Says Thank You to morly For This Useful Post:



  12. #10
    Erfahrener Benutzer
    Registriert seit
    11.03.2013
    Beiträge
    138
    Thanks
    14
    Thanked 57 Times in 41 Posts
    (shame on you, Fortis!),
    audioniek, but you are right

    in fact by factory default the bootargs sector ( 0xa0040000-0xa005ffff ) is empty and the loaders only use the embedded bootargs. whenever a "saveenv" is done at the serial console the bootargs are saved to the flash and then are preferred if the sector info is correct.

    and to all:
    the git MTD info and MTD partition layout is NOT the same as uboot/iboot mtds. its a thing for the coder to use the proper values and take care things go right.

  13. The Following User Says Thank You to solala For This Useful Post:



Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •