Temat: Kompilowanie backfire z svn - dziwny problem !?

Witam serdecznie ! Postanowiłem samodzielnie skompilować sobie obraz openwrt wg opisów na forum, poniewaz chciałem zrobic sobie obrazy dla mojego linksysa 54gl i mojego tplinka wr 740n bez luci, ale z wkompilowana obsluga usb i extrootem.

No i z poczatku było ladnie i pieknie zgodnie z opisem, poradzilem sobie z problemami z uprawnieniami do plikow i szczesliwy ze na ekranie wszystko juz lecialo jak w matrixie i sie kompilowalo, odszedlem od komputera liczac ze jak przyjde za kilka godzin to juz bedzie ok.
A tu niestety znowu jakis world error i tym razem nie wiem dlaczego i jak temu zaradzic :

make[4]: Entering directory `/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
  CC   reglib.o
In file included from reglib.h:7,
                 from reglib.c:6:
regdb.h:31: error: syntax error before "__be32"
regdb.h:31: warning: no semicolon at end of struct or union
regdb.h:33: warning: type defaults to `int' in declaration of `version'
regdb.h:33: warning: data definition has no type or storage class
regdb.h:41: error: syntax error before "reg_country_ptr"
regdb.h:41: warning: type defaults to `int' in declaration of `reg_country_ptr'
regdb.h:41: warning: data definition has no type or storage class
regdb.h:42: error: syntax error before "reg_country_num"
regdb.h:42: warning: type defaults to `int' in declaration of `reg_country_num'
regdb.h:42: warning: data definition has no type or storage class
regdb.h:44: error: syntax error before "signature_length"
regdb.h:44: warning: type defaults to `int' in declaration of `signature_length'
regdb.h:44: warning: data definition has no type or storage class
regdb.h:48: error: syntax error before "__be32"
regdb.h:48: warning: no semicolon at end of struct or union
regdb.h:59: error: syntax error before "__be32"
regdb.h:59: warning: no semicolon at end of struct or union
regdb.h:61: warning: type defaults to `int' in declaration of `max_eirp'
regdb.h:61: warning: data definition has no type or storage class
regdb.h:83: error: syntax error before "__be32"
regdb.h:83: warning: no semicolon at end of struct or union
regdb.h:84: warning: type defaults to `int' in declaration of `power_rule_ptr'
regdb.h:84: warning: data definition has no type or storage class
regdb.h:86: error: syntax error before "flags"
regdb.h:86: warning: type defaults to `int' in declaration of `flags'
regdb.h:86: warning: data definition has no type or storage class
regdb.h:90: error: syntax error before "__be32"
regdb.h:90: warning: no semicolon at end of struct or union
regdb.h:94: warning: type defaults to `int' in declaration of `reg_rule_ptrs'
regdb.h:94: warning: data definition has no type or storage class
regdb.h:95: error: syntax error before '}' token
regdb.h:102: error: syntax error before "__be32"
regdb.h:102: warning: no semicolon at end of struct or union
regdb.h: In function `check_db_binary_structs':
regdb.h:119: error: invalid application of `sizeof' to incomplete type `regdb_file_header'
regdb.h:119: error: size of array `type name' is negative
regdb.h:120: error: invalid application of `sizeof' to incomplete type `regdb_file_freq_range'
regdb.h:120: error: size of array `type name' is negative
regdb.h:121: error: invalid application of `sizeof' to incomplete type `regdb_file_power_rule'
regdb.h:121: error: size of array `type name' is negative
regdb.h:122: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rule'
regdb.h:122: error: size of array `type name' is negative
regdb.h:123: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rules_collection'
regdb.h:123: error: size of array `type name' is negative
regdb.h:124: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_country'
regdb.h:124: error: size of array `type name' is negative
In file included from reglib.c:6:
reglib.h: At top level:
reglib.h:87: error: syntax error before "__be32"
reglib.c:29: error: syntax error before "__be32"
reglib.c: In function `crda_get_file_ptr':
reglib.c:31: error: `ptr' undeclared (first use in this function)
reglib.c:31: error: (Each undeclared identifier is reported only once
reglib.c:31: error: for each function it appears in.)
reglib.c:33: error: `dblen' undeclared (first use in this function)
reglib.c:33: error: `structlen' undeclared (first use in this function)
reglib.c:38: error: `db' undeclared (first use in this function)
reglib.c: At top level:
regdb.h:94: warning: array 'reg_rule_ptrs' assumed to have one element
make[4]: *** [reglib.o] Error 1
make[4]: Leaving directory `/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
make[3]: *** [/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1/.built] Error 2
make[3]: Leaving directory `/opt/backfire/package/crda'
make[2]: *** [package/crda/compile] Error 2
make[2]: Leaving directory `/opt/backfire'
make[1]: *** [/opt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/opt/backfire'
make: *** [world] Error 2


Czy mozliwe zeby cos z tym skryptem co kompiluje bylo nie tak ? (dla mipsel 2.4)

2

Odp: Kompilowanie backfire z svn - dziwny problem !?

crda nie jest dla 2.4. Nie zaznaczaj go.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Kompilowanie backfire z svn - dziwny problem !?

Cezary napisał/a:

crda nie jest dla 2.4. Nie zaznaczaj go.

Dzięki za podpowiedź. Czy oprócz crda coś jeszcze odznaczyć dla 2.4 ?

4

Odp: Kompilowanie backfire z svn - dziwny problem !?

To za długa lista smile. Wyjdzie w praniu...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Kompilowanie backfire z svn - dziwny problem !?

OK z Linksysem udało mi się po długich bojach skompilować to co potrzebne ( nie warto kompilować wszystkiego - szkoda nerwów !).
i zrobić obraz z obsługa extroota z sdhc.

Teraz wzialem się za TP Linka TL WR740N i tutaj poszło mi szybko,
tyle tylko że na tym moim obrazie nie widzi mi mojego pendrive, na Twoim chodziło bez problemów. Kurcze czy czegoś mi brakuje w tym obrazie ?

root@OpenWrt:~# opkg list
base-files - 43.35-r31820
block-extroot - 0.0.1-2.1
block-hotplug - 0.1.0-2.2
block-mount - 0.1.0-2.2
busybox - 1.15.3-3.4
crda - 1.1.1-1
dnsmasq - 2.55-6.1
dropbear - 0.53.1-6
e2fsprogs - 1.41.11-1
fdisk - 2.13.0.1-4
firewall - 2-34.9
hotplug2 - 1.0-beta-3
iptables - 1.4.6-3.1
iptables-mod-conntrack - 1.4.6-3.1
iptables-mod-nat - 1.4.6-3.1
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-ath - 2.6.32.27+2011-12-01-1
kmod-ath9k - 2.6.32.27+2011-12-01-1
kmod-ath9k-common - 2.6.32.27+2011-12-01-1
kmod-button-hotplug - 2.6.32.27-1
kmod-cfg80211 - 2.6.32.27+2011-12-01-1
kmod-crc-ccitt - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-fs-ext2 - 2.6.32.27-1
kmod-fs-mbcache - 2.6.32.27-1
kmod-fs-vfat - 2.6.32.27-1
kmod-input-core - 2.6.32.27-1
kmod-input-gpio-buttons - 2.6.32.27-1
kmod-input-polldev - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipt-nathelper - 2.6.32.27-1
kmod-leds-gpio - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-12-01-1
kmod-nls-base - 2.6.32.27-1
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-scsi-core - 2.6.32.27-1
kmod-tun - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-ohci - 2.6.32.27-1
kmod-usb-storage - 2.6.32.27-1
kmod-usb2 - 2.6.32.27-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.35
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-43.35
libip4tc - 1.4.6-3.1
libnl-tiny - 0.1-2.1
libpthread - 0.9.30.1-43.35
librt - 0.9.30.1-43.35
libuci - 12012009.7-4
libuuid - 1.41.11-1
libxtables - 1.4.6-3.1
mtd - 13
opkg - 576-2
ppp - 2.4.4-16.1
ppp-mod-pppoe - 2.4.4-16.1
swconfig - 9
uci - 12012009.7-4
udevtrigger - 106-1
wireless-tools - 29-4
wpad-mini - 20111103-3

a w dmesg :

root@OpenWrt:~# dmesg
Linux version 2.6.32.27 (sitheek@debian32XEN) (gcc version 4.3.3 (GCC) ) #2 Sun Jun 3 17:18:43 CEST 2012
prom: fw_arg0=00000007, fw_arg1=a1f87fb0, fw_arg2=a1f88460, fw_arg3=00000004
MyLoader: sysp=ffffffff, boardp=ffffffff, parts=f0f0f0f0
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7240 rev 2, CPU:350.000 MHz, AHB:175.000 MHz, DDR:350.000 MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802e0ee0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR741ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29260k/32768k available (2147k kernel code, 3508k reserved, 418k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 232.65 BogoMIPS (lpj=1163264)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR741ND
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
PCI: fixup device 0000:00:00.0
pci 0000:00:00.0: reg 10 64bit mmio: [0x000000-0x00ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
PCI: mapping irq 48 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Jun  3 2012 16:54:50 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: w25q32 (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3fe000
Searching for RedBoot partition table in spi0.0 at offset 0x3ff000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=33F000, len=B1000
0x00000033f000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Generic PHY]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=24)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: tl-wr741nd:green:system
Registered led device: tl-wr741nd:green:qss
eth0: link up (1000Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-11-29
Backport based on wireless-testing.git master-2011-12-01
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
eth1: link up (100Mbps/Full duplex)
PCI: Setting latency timer of device 0000:00:00.0 to 64
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0
ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xb0000000, irq=48
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (459 buckets, 1836 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ar71xx-wdt: enabling watchdog timer


Nie wiem co spartaczyłem ?

6

Odp: Kompilowanie backfire z svn - dziwny problem !?

Dodane wsparcia dla usb w definicji urządzenia. Na wiki openwrt.org masz co trzeba jeszcze zmienić w kernelu, przy opisie 741 szukaj.

kmod-usb2 Ci nie jest potrzebne, bo kontrolera usb 2.0 tam nie uświadczysz. brakuje Ci stron kodowych 437 i iso-8859-1 do obsługi fata.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Kompilowanie backfire z svn - dziwny problem !?

Super - udało się po ciężkich bojach ! Dzięki za pomoc. Może napiszę jakiś poradnik dla takich opornych jak ja co by mieli lżej... smile

Mam jeszcze pytanie na temat tego tp-linka : czy w modelu 2.x powinny migac diody na switchu podczas transmisji czy nie, bo u mnie swieca sie na stale?

8

Odp: Kompilowanie backfire z svn - dziwny problem !?

Powinny raczej. Programowo to to samo co v1.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Kompilowanie backfire z svn - dziwny problem !?

Zabralem sie za kompilacje attitude adjustment - i mam problem !

make package/symlinks

konczy sie:

sitheek@debian32XEN:/opt/openwrt/attitude_adjustment$ make /package/symlinks V=s
Collecting package info: done
Collecting target info: done
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
make[1]: Entering directory `/opt/openwrt/attitude_adjustment'
make[1]: *** No rule to make target `/package/symlinks'.  Stop.
make[1]: Leaving directory `/opt/openwrt/attitude_adjustment'
make: *** [/package/symlinks] Error 2

Juz drugi raz od nowa pobralem z svn i dalej kiszka

Co robie zle ?

10

Odp: Kompilowanie backfire z svn - dziwny problem !?

make package/symlinks V=s

Bez /

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Kompilowanie backfire z svn - dziwny problem !?

faktycznie, ale jestem glupi ... smile

12

Odp: Kompilowanie backfire z svn - dziwny problem !?

marczelo napisał/a:

Witam widzę ze kolega  zrobił za to co ja niedługo będę robił chyba po niedzieli. ale nie za dużo troszkę zaznaczyłeś ? Może napisz poradnik jak chcesz i napisz jak u ciebie to chodzi big_smile i big_smile

No attitude adjustment skompilowalo sie niby z patchem do usb dla wr741nd - czyli tez do mojego 740n v2, jak bede mial chwilke to wgram i sprawdze czy dziala.


Backfire kompilowalem jakis czas temu z tym nalozonym patchem usb i dzialalo jak trzeba tj. korzystam z czytnika kart sd jako extroota, nie probowalem podlaczac modemow 3g itp, ale powinno dzialac o ile nie wymaga usb20.
Jedyny mankament to nie migaja diody na switchu podczs transmisji - bardzo dziwne, ale w niczym nie przeszkadza.

postaram sie napisac jakis poradnik, jak tylko poczuje sie w tym troszke pewniej smile, ew. moge podeslac wynik kompilacji jak ktos potrzebuje smile.