Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| firmware [23.01.2023 18:18] – [Fehlerbehebung] havelock | firmware [12.05.2023 09:41] (aktuell) – [Firmware erstellen] havelock | ||
|---|---|---|---|
| Zeile 26: | Zeile 26: | ||
| Voraussetzungen | Voraussetzungen | ||
| < | < | ||
| - | aptitude | + | apt-get |
| </ | </ | ||
| Zeile 66: | Zeile 66: | ||
| </ | </ | ||
| + | Alles löschen: '' | ||
| ==== Fehlerbehebung ==== | ==== Fehlerbehebung ==== | ||
| Falls der Build mit einer Fehlermeldung abbricht, kann das Kommando um '' | Falls der Build mit einer Fehlermeldung abbricht, kann das Kommando um '' | ||
| ergänzt werden. Damit wird eine ausführliche Protokollierung eingeschaltet. | ergänzt werden. Damit wird eine ausführliche Protokollierung eingeschaltet. | ||
| + | |||
| + | Fehler aufgrund Änderungen in glibc | ||
| Fehler bei m4: | Fehler bei m4: | ||
| Zeile 77: | Zeile 80: | ||
| echo "# | echo "# | ||
| </ | </ | ||
| + | |||
| + | <file patch tools/ | ||
| + | Subject: Workaround change in glibc | ||
| + | |||
| + | Temporary workaround to compile with glibc 2.28, which | ||
| + | deprecated some constants | ||
| + | |||
| + | Based on the workaround made for the tools/m4 package | ||
| + | |||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -18,6 +18,12 @@ | ||
| + | the same implementation of stdio extension API, except that some fields | ||
| + | have different naming conventions, | ||
| + | |||
| + | +/* Glibc 2.28 made _IO_IN_BACKUP private. | ||
| + | + | ||
| + | + | ||
| + | +#if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN | ||
| + | +# define _IO_IN_BACKUP 0x100 | ||
| + | +#endif | ||
| + | |||
| + | /* BSD stdio derived implementations. | ||
| + | |||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -29,7 +29,7 @@ | ||
| + | /* Most systems provide FILE as a struct and the necessary bitmask in | ||
| + | < | ||
| + | fast macros. | ||
| + | -#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
| + | +#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ | ||
| + | | ||
| + | #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */ | ||
| + | | ||
| + | </ | ||
| + | |||
| + | <file patch tools/ | ||
| + | Fixes the following build error with GCC 10: | ||
| + | / | ||
| + | And a compile warning. | ||
| + | |||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -61,7 +61,7 @@ extern int add_file(long long, long long | ||
| + | | ||
| + | | ||
| + | |||
| + | -int swap; | ||
| + | +static int swap; | ||
| + | |||
| + | int read_block(int fd, long long start, long long *next, unsigned char *block, squashfs_super_block *sBlk) | ||
| + | { | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -258,6 +258,7 @@ int read_sort_file(char *filename, int s | ||
| + | void sort_files_and_write(struct dir_info *dir); | ||
| + | | ||
| + | | ||
| + | +int dir_scan2(squashfs_inode *inode, struct dir_info *dir_info); | ||
| + | |||
| + | # | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | Meistens fehlt: | ||
| + | #include < | ||
| + | |||
| + | Mögliche betroffene Dateien: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | siehe auch: https:// | ||
| ===== Firmware signieren ===== | ===== Firmware signieren ===== | ||