FreeBSD on ASUS, TP-Link and D-Link routers?

Nenhum_de_Nos matheus at eternamente.info
Sun Jul 21 15:01:51 UTC 2013


On Tue, July 16, 2013 11:37, Luiz Otavio O Souza wrote:
> On 6 July 2013 17:25, Nenhum_de_Nos <matheus at eternamente.info> wrote:
>
>
>> how can I configure it to use the usb port as storage ?
>>
>> is there a limit to the size of the usb stick ?
>>
>> thanks,
>>
>> matheus
>>
>>
> Hi Matheus,
>
> Any kind of storage (supported by umass) should just work, here are two
> examples.
>
> A 160GB hard drive connected thru a USB->[S]ATA adaptor:
>
> ugen0.3: <JMicron> at usbus0
> umass0: <MSC Bulk-Only Transfer> on usbus0
> umass0:  SCSI over Bulk-Only; quirks = 0x4000
> umass0:0:0:-1: Attached to scbus0
> da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
> da0: <ST316021 2A > Fixed Direct Access SCSI-2 device
> da0: 40.000MB/s transfers
> da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
> da0: quirks=0x2<NO_6_BYTE>
>
> # geom disk list da0
> Geom name: da0
> Providers:
> 1. Name: da0
>    Mediasize: 160041885696 (149G)
>    Sectorsize: 512
>    Mode: r8w8e23
>    descr: ST316021 2A
>    ident: (null)
>    fwsectors: 63
>    fwheads: 255
>
> # gpart show da0
> =>       34  312581741  da0  GPT  (149G)
>          34        478       - free -  (239k)
>         512     524288    1  freebsd-swap  (256M)
>      524800   20971520    2  freebsd-ufs  (10G)
>    21496320   20971520    3  freebsd-ufs  (10G)
>    42467840   41943040    4  freebsd-ufs  (20G)
>    84410880   41943040    5  freebsd-ufs  (20G)
>   126353920   41943040    6  freebsd-ufs  (20G)
>   168296960   20971520    7  freebsd-ufs  (10G)
>   189268480   10485760    8  freebsd-ufs  (5.0G)
>   199754240  112827535       - free -  (53G)
>
>
> And a memory stick:
>
> ugen0.2: <SanDisk> at usbus0
> umass0: <SanDisk Cruzer Blade, class 0/0, rev 2.00/1.26, addr 2> on usbus0
> umass0:  SCSI over Bulk-Only; quirks = 0x4100
> umass0:0:0:-1: Attached to scbus0
> da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
> da0: <SanDisk Cruzer Blade 1.26> Removable Direct Access SCSI-5 device
> da0: 40.000MB/s transfers
> da0: 7633MB (15633408 512 byte sectors: 255H 63S/T 973C)
>
> # geom disk list da0
> Geom name: da0
> Providers:
> 1. Name: da0
>    Mediasize: 8004304896 (7.5G)
>    Sectorsize: 512
>    Mode: r6w4e13
>    descr: SanDisk Cruzer Blade
>    ident: (null)
>    fwsectors: 63
>    fwheads: 255
>
> # gpart show da0
> =>      34  15633341  da0  GPT  (7.5G)
>         34        94       - free -  (47k)
>        128    262144    1  freebsd-swap  (128M)
>     262272    786432    2  freebsd-ufs  (384M)
>    1048704   1048576    3  freebsd-ufs  (512M)
>    2097280   2097152    4  freebsd-ufs  (1.0G)
>    4194432   2097152    5  freebsd-ufs  (1.0G)
>    6291584     20480    6  freebsd-ufs  (10M)
>    6312064   9321311       - free -  (4.5G)
>
>
> The only difference is that you can't read the big endian UFS on your (x86)
> PC.
>
> Luiz

thanks Luiz,

I bought the serial-usb cable as suggested on the site, and when it gets here I will ask for
guidance again. I plan on buying another 1043 for test purposes. this way I can play as much as
needed. I have no kernel coding skills, but I sure can help testing :)

thanks,

matheus

ps: by the way, I can't still build the image. wait for head yet ?

-- 
We will call you Cygnus,
The God of balance you shall be

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

http://en.wikipedia.org/wiki/Posting_style


More information about the freebsd-embedded mailing list