<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>


<div dir="ltr">


<div dir="ltr">

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi Andrew,<br><br>Iptables is very useful, as is libnl & hostapd if you want your device to be a hotspot. This is functionality I will need in the near future, but I was okay with not installing these at the current stage. There might be a good chance the enthusiast would appreciate this kind of configurability. Is there a suitable alternative, or perhaps this belongs in CBLFS instead?<br><br>Regarding e2fsprogs & dropbear...<br>I haven't tested with the latest dropbear, I'll rebuild later this week, but the situation was thus:<br><br>I'm targeting ARM1176; the version of dropbear previously used had configuration scripts (config.guess and config.sub) dating from 2007, which don't support the architecture. I updated those scripts  to the latest versions from Savannah. I haven't tested with the new dropbear.<br><br>I'm not quite sure where the issue with e2fsprogs came in; I surmised that it was due to the target arch not having an unsigned 64-bit type. It's only used in 1 small section of ext2fs/unix_io.c that is for very large filesystems - but rather than just commenting it out, I rewrote it using an unsigned 32-bit type that the ARM supported.<br><br>lib/ext2fs/unix_io.c: 933 - 940:<br><br>#ifdef BLKDISCARD<br>        __uint64_t range[2];<br><br>        range[0] = (__uint64_t)(block) * channel->block_size;<br>        range[1] = (__uint64_t)(count) * channel->block_size;<br><br>        ret = ioctl(data->dev, BLKDISCARD, &range);<br>#else<br><br>Cheers, Neil<br><br><br><div>> Date: Thu, 17 Oct 2013 15:05:31 -0400<br>> From: andrew@bradfordembedded.com<br>> To: neil.bradley@windowslive.com<br>> Subject: Re: CLFS Embedded<br>> <br><br> ...<br> <br>> <br>> > 11.5.1 - iptables had same issue with config.? - but was in build-aux directory.<br>> > --enable-libipq misspelt?<br>> > Conflicts between net/if.h & linux/if.h : <br>> > change net/if.h to linux/if.h in ipt_headers.... .h & include/xtable.h<br>> > also netinet/in.h to linux/in.h<br>> > also had u_int instead of uint<br>> > These issues in both 1.4.19.1 & 1.4.20.0<br>> <br>> Yeah, programs that include both libc and linux headers are annoying<br>> with musl as it separates itself from Linux quite well (it's one of the<br>> only libc that doesn't rely on linux headers in order to build).<br>> Busybox does something similar, thus the somewhat ugly sed lines there<br>> to remove building of ifplugd.<br>> <br>> I'd like to fix ifplugd, as it's a nice feature.<br>> <br>> Is it worth keeping iptables for a normal embedded build?  I think this<br>> might again be more WRT leaking into the book for people wanting to<br>> build a router, which isn't really the direction I want to take the book.<br>> <br>> > e2fsprogs: <br>> > ioctl had an issue with 2x 64-bit block sizes in BLKDISCARD<br>> > changed to using 4x 32-bit in ext2fs/io_ctl.c<br>> <br>> OK.  I'll open a trac ticket for this.<br>> <br>> Can you write up the e2fsprogs and dropbear issues in a slightly cleaner<br>> way?  I'm not fully sure I fully grok them (and I've not yet build<br>> tested them recently).<br>> <br>> Thanks!<br>> -Andrew<br></div></div>
</div>
</div>
                                          </div></body>
</html>