Kernel (2.6.15, arm) baut nicht mit dm-crypt

Status
Für weitere Antworten geschlossen.

Silicium

Benutzer
Mitglied seit
28. Sep 2009
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
moin.

Kennt sich vielleicht jemand von euch genauer mit den Kernel Patchings im /md/ aus?

Wenn ich naehmlich das dm-crypt kernelmodul bauen will krieg ich immer nen Fehler.
Und offensichtlich ist das ganze md zeug ziemlich gepatcht.

Ich musste aber auch gcc probleme fixen da der mit der "offiziellen" toolchain gelieferte gcc4.2.1 mit Linux 2.6.15 garnicht funktioniert.

Ich verwende synogpl-844.tbz und arm-none-linux-gnueabi
Arch is ARM

Kernel .config haengt an, wundert euch nicht darueber das ich alle Cryptoalgos aktiviert habe, das war n test da ich dachte das der gepatchte md von irgendwas abhaengt und nichts sagt.


Gruss Silicium


Rich (BBCode):
  CC [M]  drivers/md/dm-crypt.o
drivers/md/dm-crypt.c: In function 'crypt_iv_essiv_ctr':
drivers/md/dm-crypt.c:140: error: storage size of 'desc' isn't known
drivers/md/dm-crypt.c:152: warning: implicit declaration of function 'crypto_alloc_hash'
drivers/md/dm-crypt.c:152: error: 'CRYPTO_ALG_ASYNC' undeclared (first use in this function)
drivers/md/dm-crypt.c:152: error: (Each undeclared identifier is reported only once
drivers/md/dm-crypt.c:152: error: for each function it appears in.)
drivers/md/dm-crypt.c:152: warning: assignment makes pointer from integer without a cast
drivers/md/dm-crypt.c:158: warning: implicit declaration of function 'crypto_hash_digestsize'
drivers/md/dm-crypt.c:162: warning: implicit declaration of function 'crypto_free_hash'
drivers/md/dm-crypt.c:169: warning: implicit declaration of function 'crypto_hash_digest'
drivers/md/dm-crypt.c:178: warning: implicit declaration of function 'crypto_alloc_cipher'
drivers/md/dm-crypt.c:178: warning: assignment makes pointer from integer without a cast
drivers/md/dm-crypt.c:184: warning: implicit declaration of function 'crypto_cipher_blocksize'
drivers/md/dm-crypt.c:185: warning: implicit declaration of function 'crypto_blkcipher_ivsize'
drivers/md/dm-crypt.c:188: warning: implicit declaration of function 'crypto_free_cipher'
drivers/md/dm-crypt.c:192: warning: passing argument 1 of 'crypto_cipher_setkey' from incompatible pointer type
drivers/md/dm-crypt.c:140: warning: unused variable 'desc'
drivers/md/dm-crypt.c: In function 'crypt_iv_essiv_gen':
drivers/md/dm-crypt.c:215: warning: implicit declaration of function 'crypto_cipher_encrypt_one'
drivers/md/dm-crypt.c: In function 'crypt_iv_benbi_ctr':
drivers/md/dm-crypt.c:222: warning: implicit declaration of function 'crypto_blkcipher_blocksize'
drivers/md/dm-crypt.c:223: warning: implicit declaration of function 'ilog2'
drivers/md/dm-crypt.c: In function 'crypt_convert_scatterlist':
drivers/md/dm-crypt.c:281: error: variable 'desc' has initializer but incomplete type
drivers/md/dm-crypt.c:282: error: unknown field 'tfm' specified in initializer
drivers/md/dm-crypt.c:282: warning: excess elements in struct initializer
drivers/md/dm-crypt.c:282: warning: (near initialization for 'desc')
drivers/md/dm-crypt.c:283: error: unknown field 'info' specified in initializer
drivers/md/dm-crypt.c:283: warning: excess elements in struct initializer
drivers/md/dm-crypt.c:283: warning: (near initialization for 'desc')
drivers/md/dm-crypt.c:284: error: unknown field 'flags' specified in initializer
drivers/md/dm-crypt.c:284: warning: excess elements in struct initializer
drivers/md/dm-crypt.c:284: warning: (near initialization for 'desc')
drivers/md/dm-crypt.c:281: error: storage size of 'desc' isn't known
drivers/md/dm-crypt.c:294: warning: implicit declaration of function 'crypto_blkcipher_encrypt_iv'
drivers/md/dm-crypt.c:296: warning: implicit declaration of function 'crypto_blkcipher_decrypt_iv'
drivers/md/dm-crypt.c:299: warning: implicit declaration of function 'crypto_blkcipher_encrypt'
drivers/md/dm-crypt.c:301: warning: implicit declaration of function 'crypto_blkcipher_decrypt'
drivers/md/dm-crypt.c:281: warning: unused variable 'desc'
drivers/md/dm-crypt.c: In function 'kcryptd_queue_io':
drivers/md/dm-crypt.c:520: warning: assignment from incompatible pointer type
drivers/md/dm-crypt.c: In function 'process_write':
drivers/md/dm-crypt.c:662: warning: implicit declaration of function 'congestion_wait'
drivers/md/dm-crypt.c: At top level:
drivers/md/dm-crypt.c:683: error: conflicting types for 'kcryptd_do_work'
drivers/md/dm-crypt.c:513: error: previous declaration of 'kcryptd_do_work' was here
drivers/md/dm-crypt.c: In function 'crypt_ctr':
drivers/md/dm-crypt.c:822: warning: implicit declaration of function 'crypto_alloc_blkcipher'
drivers/md/dm-crypt.c:822: error: 'CRYPTO_ALG_ASYNC' undeclared (first use in this function)
drivers/md/dm-crypt.c:822: warning: assignment makes pointer from integer without a cast
drivers/md/dm-crypt.c:886: warning: implicit declaration of function 'crypto_blkcipher_setkey'
drivers/md/dm-crypt.c:934: warning: implicit declaration of function 'crypto_free_blkcipher'
make[2]: *** [drivers/md/dm-crypt.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
marco@earth:/media/data3/foo/source/linux-2.6.15$


Rich (BBCode):
MicoVAX> cat /proc/cpu
/proc/cpu/      /proc/cpuinfo 
MicoVAX> cat /proc/cpuinfo 
Processor	: ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS	: 499.71
Features	: swp half thumb fastmult vfp edsp 
CPU implementer	: 0x41
CPU architecture: 5TEJ
CPU variant	: 0x0
CPU part	: 0x926
CPU revision	: 0
Cache type	: write-back
Cache clean	: cp15 c7 ops
Cache lockdown	: format C
Cache format	: Harvard
I size		: 32768
I assoc		: 1
I line length	: 32
I sets		: 1024
D size		: 32768
D assoc		: 4
D line length	: 32
D sets		: 256

Hardware	: MV-88fxx81
Revision	: 0000
Serial		: 0000000000000000
MicoVAX>
 

Anhänge

  • config-dist.txt
    24,9 KB · Aufrufe: 0

itari

Benutzer
Mitglied seit
15. Mai 2008
Beiträge
21.900
Punkte für Reaktionen
14
Punkte
0
Nur zur Sicherheit frag ich grad mal ... dir ist sind die Teile, die der IPKG zu 2.6.15 liefern kann, bekannt, oder?

Itari
 

Silicium

Benutzer
Mitglied seit
28. Sep 2009
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
du meinst direkt auf der box bauen?

ne, is mir noch nichts bekannt, hab das ding erst seit nem Tag :)

-edit-

also ipkg hab ich natuerlich schon drauf.
 

itari

Benutzer
Mitglied seit
15. Mai 2008
Beiträge
21.900
Punkte für Reaktionen
14
Punkte
0
gcc, optware-devel, kernel-modules usw.

Itari
 

Silicium

Benutzer
Mitglied seit
28. Sep 2009
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
ERROR: Cannot satisfy the following dependencies for kernel-modules:
kernel-image
bash-3.2# ipkg install kernel-image
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package kernel-image.




Kannst gibts da nicht irgend ne Anleitung wie ich da nen Kernel/Modules drauf baue?

Vielen Dank
 

Silicium

Benutzer
Mitglied seit
28. Sep 2009
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
Also der Fehler zum Thread kommt von nem Patch der von synology in dm-crypt applied wurde.

die haben offensichtlich einfach diverse kernel patches applied und dabei nicht drauf geachtet ob gewisse module noch kompilieren, dazu gehoert dm-crypt.
zwar bisschen unsauber aber grundsaetzlich spricht nichts dagegen, da es ja nicht verwendet wird.


Ich versuch jetzt mal diese bugs zu fixen
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat