Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-26 Terurut Topik W
Maaf lama ..., saya harus recompile ulang semua krn build env nya saya pindah ke laptop : hasil kompilasi e2fsprogs jika devmapper support nya diaktifkan : making all in lib/blkid make[3]: Entering directory

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-26 Terurut Topik W
Update : Kelihatannya bukan di e2fsprogs salahnya, saya coba recompilasi e2fsprogs tanpa devmapper support : ./configure --prefix=/opt/e2fsprogs-1.39/binary/ --disable-blkid-devmapper ldd output hasil kompilasi : [EMAIL PROTECTED]:/opt/e2fsprogs-1.39/binary$ ldd sbin/mkfs.ext2

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-26 Terurut Topik W
FYI, http://www.redhat.com/archives/dm-devel/2006-March/msg00036.html Error nya kurang lebih sama dengan saya, uclibc + devmapper , but with no answer .. )-: Salam Wildan -- --- Person who say it cannot be done should not interrupt person doing it. Coz. Miracles are closer than you think

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-26 Terurut Topik W
Apa harus bongkar device-mapper sources nya juga ya ? On 9/26/07, W [EMAIL PROTECTED] wrote: FYI, http://www.redhat.com/archives/dm-devel/2006-March/msg00036.html Error nya kurang lebih sama dengan saya, uclibc + devmapper , but with no answer .. )-: Salam Wildan -- --- Person who

RE: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-26 Terurut Topik Anto
PM To: tanya-jawab@linux.or.id Subject: Re: [tanya-jawab] ioctl error ...dan device mapper issues Apa harus bongkar device-mapper sources nya juga ya ? On 9/26/07, W [EMAIL PROTECTED] wrote: FYI, http://www.redhat.com/archives/dm-devel/2006-March/msg00036.html Error nya kurang lebih sama

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-25 Terurut Topik W
Assalamu'alaikum ... Kelihatannya email ku ini di bouncing oleh server milis krn terlalu besar .. )-: Coba ..., Pak Doni, Pak Adi, dan rekan-rekan yang lain ...,coba lihat alamat berikut untuk isi lengkap email : http://wildanm.wordpress.com/2007/09/25/device-mapper-layer-issues/#more-69

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-25 Terurut Topik Doni Andri Cahyono
W wrote: Assalamu'alaikum ... Kelihatannya email ku ini di bouncing oleh server milis krn terlalu besar .. )-: Coba ..., Pak Doni, Pak Adi, dan rekan-rekan yang lain ...,coba lihat alamat berikut untuk isi lengkap email :

Re: [tanya-jawab] ioctl error ...dan device mapper issues

2007-09-25 Terurut Topik W
Untuk LUKS_open_key, memang masih safe jika diset r = 1 karena error dicheck pada kondisi r 0, tapi tolong dicheck bahwa r = (memcmp(checkHashBuf,hdr-mkDigest, LUKS_DIGESTSIZE) == 0)?0:-EPERM; Maksudnya di check return value operasi memcmp diatas ? Untuk mapping device ini masih

Re: [tanya-jawab] ioctl error ...

2007-09-21 Terurut Topik W
Benar juga dugaan saya kemarin ..., kutunya ada di fungsi ... LUKS_open_key() di keymanage.c kalau return nya diganti == (return 1) jadi langsung bisa , hehe ... ketika googling ada yang bilang memcmp di uclibnya ada bugsnya, tapi tertanggal 2004, seharus nya skrg tidak masalah lagi ...

Re: [tanya-jawab] ioctl error ...

2007-09-21 Terurut Topik Doni Andri Cahyono
W wrote: Benar juga dugaan saya kemarin ..., kutunya ada di fungsi ... LUKS_open_key() di keymanage.c kalau return nya diganti == (return 1) jadi langsung bisa , hehe ... ketika googling ada yang bilang memcmp di uclibnya ada bugsnya, tapi tertanggal 2004, seharus nya skrg tidak masalah

Re: [tanya-jawab] ioctl error ...

2007-09-21 Terurut Topik Doni Andri Cahyono
Doni Andri Cahyono wrote: W wrote: Benar juga dugaan saya kemarin ..., kutunya ada di fungsi ... LUKS_open_key() di keymanage.c kalau return nya diganti == (return 1) jadi langsung bisa , hehe ... ketika googling ada yang bilang memcmp di uclibnya ada bugsnya, tapi tertanggal 2004,

Re: [tanya-jawab] ioctl error ...

2007-09-21 Terurut Topik Efriel Elyasa
Tolong kawan2 yang pada expert. Help debian sarge, waktu install libgd2 untuk buat barcode dari php dan install Libc6 ternyata conflict dengan tzdata, kalo tzdata diremove pengaruh ke php5 postgres apache ga? atau pengaruh kemana? ada yang pernah buat aplikasi barcode+php5 di linux? share

Re: [tanya-jawab] ioctl error ...

2007-09-20 Terurut Topik W
Memang benar, process open berulang hingga menemukan file yang ditemukan karena process ini mengikuti path_resolution (coba man open) dari root directory / hingga file tsb ditemukan, dengan catatan jika file adalah symbolic link nanti akan terjadi stack overflow di kernel dan biasanya akan

Re: [tanya-jawab] ioctl error ...

2007-09-19 Terurut Topik W
ca code org capek juga .., tapi jadi belajar banyak .. :) btw. bisa copypaste output cryptsetup itu tanpa -cipher ? dipasang di blog juga boleh :-) Output dengan strace atau tanpa strace nih ..? :) Nanti sore mungkin yah .., lagi settingin wireless di salemba nih ..^_^ -- --- Person who

Re: [tanya-jawab] ioctl error ...

2007-09-19 Terurut Topik adi
On Wed, Sep 19, 2007 at 01:31:01PM +0700, W wrote: Output dengan strace atau tanpa strace nih ..? :) Nanti sore mungkin yah .., lagi settingin wireless di salemba nih ..^_^ tanpa strace. thx ya. Salam, P.Y. Adi Prasaja -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab

Re: [tanya-jawab] ioctl error ...

2007-09-19 Terurut Topik W
tanpa strace. thx ya. Baru sampe lab :) , ini hasil tes nya : http://bakmi.wordpress.com/2007/09/19/junk-code-result-2/ Kelihatannya memang key nya belum dapat, nanti dilihat kembali flownya .. mau buka puasa dulu .., :) Thanks! Salam Wildan -- --- Person who say it cannot be done should

Re: [tanya-jawab] ioctl error ...

2007-09-19 Terurut Topik W
Mau tanya ..., kalau untuk print nilai seluruh isi struct yang enak gimana yah ? apa ada fungsinya ? Mungkin seperti fungi print_r() di php yang bisa menampilkan selurus key dan value sebuah array .. Apa ada fungsi serupa di C untuk menampilkan isi dari sebuah struct ? Untuk keperluan debug aja

Re: [tanya-jawab] ioctl error ...

2007-09-19 Terurut Topik Doni Andri Cahyono
W wrote: Saya kira ini tak masalah .., cryptsetup mencari lib yang diperlukan pada /lib dan pada /usr/lib, bisa dilihat pada output strace berikut : open(/lib/libpopt.so.0″, O_RDONLY) = -1 ENOENT (No such file or directory) open(/lib/libpopt.so.0″, O_RDONLY) = -1 ENOENT (No such file or

Re: [tanya-jawab] ioctl error ...

2007-09-18 Terurut Topik W
On 9/18/07, adi [EMAIL PROTECTED] wrote: On Fri, Sep 14, 2007 at 08:36:51PM +0700, W wrote: bisa lihat strace output di avr32 di disni : http://wildanm.wordpress.com/2007/09/14/failed-cryptsetup-cipher-aes-luksopen-devmmcblk0p2-rahasia/#more-64 btw, ini sudah beres ? :D Belum ... :D

Re: [tanya-jawab] ioctl error ...

2007-09-18 Terurut Topik W
Tapi jadinya harus mengikuti flow program benar-benar :D Belum ada kabar baik sih ... :D, hehe ... masih masuk2in junk code (http://bakmi.wordpress.com/2007/09/18/junk-code-result/) Baca code org capek juga .., tapi jadi belajar banyak .. :) Kelihatannya cryptsetup bawaan ubuntu sudah di

Re: [tanya-jawab] ioctl error ...

2007-09-18 Terurut Topik adi
On Tue, Sep 18, 2007 at 09:42:34PM +0700, W wrote: Belum ada kabar baik sih ... :D, hehe ... masih masuk2in junk code (http://bakmi.wordpress.com/2007/09/18/junk-code-result/) Baca code org capek juga .., tapi jadi belajar banyak .. :) btw. bisa copypaste output cryptsetup itu tanpa -cipher

Re: [tanya-jawab] ioctl error ...

2007-09-17 Terurut Topik adi
On Fri, Sep 14, 2007 at 08:36:51PM +0700, W wrote: bisa lihat strace output di avr32 di disni : http://wildanm.wordpress.com/2007/09/14/failed-cryptsetup-cipher-aes-luksopen-devmmcblk0p2-rahasia/#more-64 btw, ini sudah beres ? :D kalau lihat di atas, itu kelihatannya dari sisi syscall sudah

Re: [tanya-jawab] ioctl error ...

2007-09-15 Terurut Topik W
Catatan dari saya : 1. Dari ldd semula dan asumsi anda menggunakan kernel 2.6.18 bukan 2.6.22.1 (seperti di awal thread) : libpopt.so.0 = /usr/lib/libpopt.so.0 (0×2aab3000) libcryptsetup.so.0 = /usr/lib/libcryptsetup.so.0 (0×2aab9000) libdevmapper.so.1.02 =

Re: [tanya-jawab] ioctl error ...

2007-09-15 Terurut Topik W
Point ke 2 : Ada python script file kalau ingin mengecek ke device: fileDiffer.py di directory cryptsetup-luks-1.0.3/luks/testing. Saya masih belum paham .., cara pakai nya gimana yah ? :d Berikut saya excerpt dari file setup.c :

Re: [tanya-jawab] ioctl error ...

2007-09-14 Terurut Topik W
btw. yang beda dengan yang anda timpa itu sys/io.h ya .. ? sys/ioctl.h duh .., skrh luksOpen nya gak bisa .., padahal isLuks dan luksDump action-nya baik2 saja ..., saya khawatir krn ini gara2 masukin pashhprase lewat serial ..., baru dugaan bisa lihat strace output di avr32 di disni :

Re: [tanya-jawab] ioctl error ...

2007-09-14 Terurut Topik Doni Andri Cahyono
W wrote: btw. yang beda dengan yang anda timpa itu sys/io.h ya .. ? sys/ioctl.h duh .., skrh luksOpen nya gak bisa .., padahal isLuks dan luksDump action-nya baik2 saja ..., saya khawatir krn ini gara2 masukin pashhprase lewat serial ..., baru dugaan bisa lihat strace output di avr32 di

Re: [tanya-jawab] ioctl error ...

2007-09-14 Terurut Topik Doni Andri Cahyono
Doni Andri Cahyono wrote: W wrote: saya khawatir krn ini gara2 masukin pashhprase lewat serial ..., baru dugaan yg diubuntu menggunakan sdcard yg sama dengan yang di avr, bedanya yang diubuntu saya harus pake sd to usb untuk ngetes nya ... masih .., cari tau kutunya dimana .. ? Pak adi

Re: [tanya-jawab] ioctl error ...

2007-09-13 Terurut Topik W
On 9/12/07, adi [EMAIL PROTECTED] wrote: On Wed, Sep 12, 2007 at 08:21:30PM +0700, W wrote: nah ..., kalau saya buat sendiri file nya ternyata skrh bisa mengukur sector size skrg ... maksudnya kalau di-strace tidak diassign di memory addr 0? Iya .., jadi tidak ke memori addr 0 lagi ..

Re: [tanya-jawab] ioctl error ...

2007-09-13 Terurut Topik adi
On Thu, Sep 13, 2007 at 06:03:40PM +0700, W wrote: nanti yah .., saya baru saja cross check, apakah yg menyebabkan error nya itu kesalahan penggunaan header atau bukan btw. ini native compile atau cross compile? cross compile kemudian apakah compiler yang anda pakai untuk

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik W
ini output awal strace di avt32, perhatikan ada ioctl yang return nya : EBADF: ioctl(2147483647, TCGETS, 0×7fa78b3c) = -1 EBADF (Bad file descriptor) ---cut --- bash-3.2# strace cryptsetup -y �Ccipher plain luksFormat /dev/mmcblk0p2 execve(/usr/sbin/cryptsetup, [cryptsetup, -y,

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik W
Eh baca deng ... :D On 9/12/07, W [EMAIL PROTECTED] wrote: Pa Adi, Pak Doni, Coba perhatikan : yang di ubuntu tak baca /dev/random sedangkan yang di ngw baca ... : http://wildanm.wordpress.com/2007/09/09/there-something-weird/ Salam WIldan -- --- Person who say it cannot be done

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik W
Pa Adi, Pak Doni, Coba perhatikan : yang di ubuntu tak baca /dev/random sedangkan yang di ngw baca ... : http://wildanm.wordpress.com/2007/09/09/there-something-weird/ Salam WIldan -- --- Person who say it cannot be done should not interrupt person doing it. Coz. Miracles are closer than

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik adi
On Wed, Sep 12, 2007 at 12:47:42PM +0700, W wrote: Setelah menggunakan inisialisasi sama saja .., tetap error ... waduh .. musti belajar dari source busybox di avr32 kayaknya. kalau yang kepikiran sih cek cross compiler dan source fdisk busybox. sama, saya juga gak ngerti teori compiler :D

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik W
nah ..., kalau saya buat sendiri file nya ternyata skrh bisa mengukur sector size skrg ... ##GetSDSectorSize.c #include stdio.h #include sys/ioctl.h #include linux/fs.h /** where BLKSSZGET declared **/ #include errno.h /** Where EINVAL declared **/ #include sys/io.h /** open() **/ #include

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik Doni Andri Cahyono
W wrote: nah ..., kalau saya buat sendiri file nya ternyata skrh bisa mengukur sector size skrg ... ##GetSDSectorSize.c #include stdio.h #include sys/ioctl.h #include linux/fs.h /** where BLKSSZGET declared **/ #include errno.h /** Where EINVAL declared **/ #include sys/io.h /** open() **/

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik Doni Andri Cahyono
W wrote: ini output awal strace di avt32, perhatikan ada ioctl yang return nya : EBADF: ioctl(2147483647, TCGETS, 0×7fa78b3c) = -1 EBADF (Bad file descriptor) Ya, ini ada file descriptor yang tidak sesuai. TCGETS digunakan pada waktu ada command yang akan diikutkan dengan argument

Re: [tanya-jawab] ioctl error ...

2007-09-12 Terurut Topik W
Wah .., thanks Pak Doni .. :) Saya akan lanjutkan besok .., mau pulang, mandi, dan shalat taraweh .., walaupun munfarid .. ^_^ I'll let you know the improvement tomorrow ... Salam Wildan On 9/13/07, Doni Andri Cahyono [EMAIL PROTECTED] wrote: W wrote: nah ..., kalau saya buat sendiri file

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
On 9/11/07, adi [EMAIL PROTECTED] wrote: On Tue, Sep 11, 2007 at 12:28:27PM +0700, W wrote: Tapi ketika saya cek dengan utilitas fdisk bisa terbaca sector size nya ? fdisk /dev/mmcblk0 karena pakai perintah ioctl yang lain ? coba di-strace juga :-) Tak pakai ioctl dia ... : bash-3.2#

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik adi
On Tue, Sep 11, 2007 at 01:56:16PM +0700, W wrote: open(/dev/mmcblk0, O_RDWR|O_LARGEFILE) = 3 read(3, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 512) = 512 ioctl(3, BLKSSZGET, 0x7f97dbd0) = 0 sepertinya karena bug di cryptosetup. coba update cryptosetup anda.

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
sepertinya karena bug di cryptosetup. coba update cryptosetup anda. atau kirim bug report :D Yah itu dia ..., saya sudah kirim bugs report ke buildroot/busybox, krn awal package nya berawal dari sana ..., tapi ama yang buat paket ini katanya suruh dibuang paket ini krn banyak mengalami hal

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
Driver mmc avr32 sudah mendukung BLKSSZGET request ..., Coba perhartikan output strace berikut : cut -- open(/dev/urandom, O_RDONLY|O_LARGEFILE) = 4 read(4, \233P\30L\225)\262\216\245{\6\235\6\363\365), 16) = 16 close(4) = 0 getpid() = 365 brk(0×17000) = 0×17000

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik Doni Andri Cahyono
W wrote: Driver mmc avr32 sudah mendukung BLKSSZGET request ..., Coba perhartikan output strace berikut : cut -- open(/dev/urandom, O_RDONLY|O_LARGEFILE) = 4 read(4, \233P\30L\225)\262\216\245{\6\235\6\363\365), 16) = 16 close(4) = 0 getpid() = 365

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik adi
On Tue, Sep 11, 2007 at 09:31:40PM +0700, W wrote: Driver mmc avr32 sudah mendukung BLKSSZGET request ..., iya, ini sudah bisa dilihat dari strace output fdisk anda :-) ioctl(4, BLKSSZGET, 0) = -1 EFAULT (Bad address) cut ---

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik Doni Andri Cahyono
Doni Andri Cahyono wrote: Sebenarnya masih belum lengkap hasil stracenya dan saya belum pernah deploy di mmc avr32. Ini sedikit cheesy, kalau di strace ubuntu box anda seperti apa? Untuk perbandingan saja. Kalau sampai block size dari fd tidak dikenali coba format dengan bs = 512

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
Sebenarnya masih belum lengkap hasil stracenya dan saya belum pernah deploy di mmc avr32. Belum lengkapnya apanya ? Perbandingan hasil strace di ubuntu dan avr32 bisa dilihat dialamat ini : http://wildanm.wordpress.com/2007/09/09/there-something-weird/ Ini sedikit cheesy, kalau di strace

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
ini berarti bsize berada pada area memory yang tak bisa diakses ...? coba perhatikan strace output anda, hasil fungsi ioctl itu dicoba diassign ke pointer memory address 0 (sehingga failed dan errno diset ke EFAULT). bandingkan dengan strace output fdisk anda. sepertinya karena bsize tidak

Re: [tanya-jawab] ioctl error ...

2007-09-11 Terurut Topik W
Setelah menggunakan inisialisasi sama saja .., tetap error ... On 9/12/07, W [EMAIL PROTECTED] wrote: ini berarti bsize berada pada area memory yang tak bisa diakses ...? coba perhatikan strace output anda, hasil fungsi ioctl itu dicoba diassign ke pointer memory address 0 (sehingga

[tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik W
Ass. brk(0x17000)= 0x17000 ioctl(2147483647, TCGETS, 0x7fe1e6e8) = -1 EBADF (Bad file descriptor) brk(0x18000)= 0x18000 ioctl(2147483647, TCGETS, 0x7fe1e6e4) = -1 EBADF (Bad file descriptor) brk(0x19000)=

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik Ronny Haryanto
On 10/09/2007, W [EMAIL PROTECTED] wrote: brk(0x17000)= 0x17000 ioctl(2147483647, TCGETS, 0x7fe1e6e8) = -1 EBADF (Bad file descriptor) brk(0x18000)= 0x18000 ioctl(2147483647, TCGETS, 0x7fe1e6e4) = -1 EBADF (Bad file descriptor)

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik W
Hmm ..., ini sambungan dari yg kemarin ... : email kmrn 'm trying to port cryptsetup to avr32 arch. There are several issues i found when trying to porting cryptsetup to the avr32 platform. I think, it's usefull to show you where the issue is. The following is the command i use to

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik adi
On Mon, Sep 10, 2007 at 08:53:36PM +0700, W wrote: Check kernel for support for the plain-cbc-plain cipher spec and yang ini sudah dicek ? pastikan kernel support perintah ioctl BLKSSZGET (perintah untuk mencari ukuran sektor) untuk device (storage) anda. open(/dev/mmcblk0p2,

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik Agus Budy Wuysang
Wtf? -- BlackBerry® 7290; pin:24fae0cd YM: supeskrim; GTalk: nguik.gnuik CDMA: +62-411-5272772 GSM: +62-819-4237172 -Original Message- From: W [EMAIL PROTECTED] Date: Mon, 10 Sep 2007 20:14:33 To:tanya-jawab@linux.or.id, [EMAIL PROTECTED] Subject: [tanya-jawab] ioctl error ... Ass

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik W
yang ini sudah dicek ? pastikan kernel support perintah ioctl BLKSSZGET (perintah untuk mencari ukuran sektor) untuk device (storage) anda. Nah itu dia .., dimana ya mengecek nya ? caranya ? :) maklum .., masih newbie ... Wassalam Wildan -- --- Person who say it cannot be done should not

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik adi
On Tue, Sep 11, 2007 at 11:55:10AM +0700, W wrote: Nah itu dia .., dimana ya mengecek nya ? caranya ? :) maklum .., masih newbie ... cari info mengenai driver mmc yang dipakai diperangkat anda, apakah support atau tidak. skrg sih jelas tidak support, maksud saya, barangkali ada driver yang

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik W
Tapi ketika saya cek dengan utilitas fdisk bisa terbaca sector size nya ? fdisk /dev/mmcblk0 berarti di level driver tidak masalah ya ? Saya sudah cek linux-2.6.22.1/block/ioctl.c kliahatnnya kernel nya sudah dukung, perintah ioctl untuk mengecek sector size : case BLKSSZGET: /* get block

Re: [tanya-jawab] ioctl error ...

2007-09-10 Terurut Topik adi
On Tue, Sep 11, 2007 at 12:28:27PM +0700, W wrote: Tapi ketika saya cek dengan utilitas fdisk bisa terbaca sector size nya ? fdisk /dev/mmcblk0 karena pakai perintah ioctl yang lain ? coba di-strace juga :-) case BLKSSZGET: /* get block device hardware sector size */