Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-07-04 Thread John Crispin
applied in r41505


On 04/07/2014 00:24, Roman Yeryomin wrote:
 On 16 April 2014 11:17, Bastian Bittorf bitt...@bluebottle.com
 wrote:
 * Roman Yeryomin leroi.li...@gmail.com [16.04.2014 09:34]:
 Also pci seems to be broken as neither miniPCI slots nor VIA
 ethernet ports are not working:
 
 I've tested this and it works fine:
 https://patchwork.linux-mips.org/patch/6940/ Gabor, any reason it's
 still not in trunk?
 
 
 Regards, Roman ___ 
 openwrt-devel mailing list openwrt-devel@lists.openwrt.org 
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-07-04 Thread Roman Yeryomin
On 4 July 2014 09:35, John Crispin j...@phrozen.org wrote:
 applied in r41505


Thanks!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-07-03 Thread Roman Yeryomin
On 16 April 2014 11:17, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [16.04.2014 09:34]:
 Also pci seems to be broken as neither miniPCI slots nor VIA ethernet
 ports are not working:

I've tested this and it works fine: https://patchwork.linux-mips.org/patch/6940/
Gabor, any reason it's still not in trunk?


Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-04-16 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [16.04.2014 09:34]:
 Also pci seems to be broken as neither miniPCI slots nor VIA ethernet
 ports are not working:

can you please try to fiddle in:
http://patchwork.linux-mips.org/patch/4087/

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard / PCI issues

2014-04-16 Thread Roman Yeryomin
On 16 April 2014 11:17, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [16.04.2014 09:34]:
 Also pci seems to be broken as neither miniPCI slots nor VIA ethernet
 ports are not working:

 can you please try to fiddle in:
 http://patchwork.linux-mips.org/patch/4087/


Looks like not our case.
PCI bus init:

[0.104000] PCI host bridge to bus :00
[0.104000] pci_bus :00: root bus resource [mem 0x5000-0x5fff]
[0.104000] pci_bus :00: root bus resource [io  0x1880-0x188f]
[0.104000] pci_bus :00: No busn resource found for root bus,
will use [bus 00-ff]
[0.132000] pci :00:00.0: [111d:] type 00 class 0x00
[0.132000] pci :00:00.0: reg 10: [mem 0x-0x07ff pref]
[0.188000] pci :00:02.0: [1106:3106] type 00 class 0x02
[0.188000] pci :00:02.0: reg 10: [io  0x-0x00ff]
[0.188000] pci :00:02.0: reg 14: [mem 0x-0x00ff]
[0.188000] pci :00:02.0: supports D1 D2
[0.188000] pci :00:02.0: PME# supported from D1 D2 D3hot D3cold
[0.216000] pci :00:03.0: [1106:3106] type 00 class 0x02
[0.216000] pci :00:03.0: reg 10: [io  0x-0x00ff]
[0.216000] pci :00:03.0: reg 14: [mem 0x-0x00ff]
[0.216000] pci :00:03.0: supports D1 D2
[0.216000] pci :00:03.0: PME# supported from D1 D2 D3hot D3cold
[0.244000] pci :00:04.0: [168c:0013] type 00 class 0x02
[0.244000] pci :00:04.0: reg 10: [mem 0x-0x]
[0.272000] pci :00:05.0: [168c:0013] type 00 class 0x02
[0.272000] pci :00:05.0: reg 10: [mem 0x-0x]
[0.72] pci_bus :00: busn_res: [bus 00-ff] end is updated to 00
[0.72] pci :00:04.0: BAR 0: can't assign mem (size 0x1)
[0.72] pci :00:05.0: BAR 0: can't assign mem (size 0x1)
[0.72] pci :00:02.0: BAR 0: assigned [io  0x1880-0x188000ff]
[0.72] pci :00:02.0: BAR 1: can't assign mem (size 0x100)
[0.72] pci :00:03.0: BAR 0: assigned [io  0x18800400-0x188004ff]
[0.72] pci :00:03.0: BAR 1: can't assign mem (size 0x100)
[0.724000] Switching to clocksource MIPS


Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [11.04.2014 10:45]:
 I would even use it if it really works...

For now, it boots fine via ethernet and/or Compact-flash
but only 1 ethernet-port is working.
my two ath5k-cards (R52) are not detected and it seems
to be somehow like this:

http://patchwork.linux-mips.org/patch/4087/

this is my klog:
http://www.intercity-vpn.de/files/openwrt/Routerboard_rb532_dmesg_ath5k_or_pci_fails.txt
(dont mind the yaffs2-fuckup, thats not related)

at the moment i dont have time for this, but if somebody like,
SSH-access and SSH to serial-line is possible (screen-session).

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Roman Yeryomin
On 11 April 2014 11:58, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 10:45]:
 I would even use it if it really works...

 For now, it boots fine via ethernet and/or Compact-flash
 but only 1 ethernet-port is working.
 my two ath5k-cards (R52) are not detected and it seems
 to be somehow like this:

 http://patchwork.linux-mips.org/patch/4087/

 this is my klog:
 http://www.intercity-vpn.de/files/openwrt/Routerboard_rb532_dmesg_ath5k_or_pci_fails.txt
 (dont mind the yaffs2-fuckup, thats not related)

 at the moment i dont have time for this, but if somebody like,
 SSH-access and SSH to serial-line is possible (screen-session).


Did you fix anything to boot it?
Mine says (with both ext4 and squashfs images):

[1.476000] scsi 0:0:0:0: Direct-Access ATA  Hitachi Flash
Ca Rev  PQ: 0 ANSI: 5
[1.488000] sd 0:0:0:0: [sda] 125184 512-byte logical blocks: (64.0
MB/61.1 MiB)
[1.496000] sd 0:0:0:0: [sda] Write Protect is off
[1.504000] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[1.52]  sda: sda1 sda2
[1.532000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[1.536000] Creating 1 MTD partitions on /dev/sda2:
[1.544000] 0x-0x0303 : /dev/sda2
[1.552000] block2mtd: mtd0: [/dev/sda2] erase_size = 64KiB [65536]
[1.56] List of all partitions:
[1.564000] 1f004096 mtdblock0  (driver?)
[1.572000] 1f01  126976 mtdblock1  (driver?)
[1.576000] 0800   62592 sda  driver: sd
[1.584000]   08014336 sda1 -01
[1.588000]   0802   49392 sda2 -02
[1.592000] 1f02   49344 mtdblock2  (driver?)
[1.60] No filesystem could mount root, tried:  squashfs
[1.604000] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(31,0)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [11.04.2014 16:48]:
  at the moment i dont have time for this, but if somebody like,
  SSH-access and SSH to serial-line is possible (screen-session).
 
 Did you fix anything to boot it?

no, i just removed the broken-flag and started the build.

 Mine says (with both ext4 and squashfs images):

i just used 'dd' to write 'openwrt-rb532-combined-jffs2-128k.bin' to
my CF-card, e.g. 'dd if=openwrt-rb532-combined-jffs2-128k.bin of=/dev/sda'

please send me a link to your image, i will try to boot that...bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Roman Yeryomin
On 11 April 2014 17:54, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 16:48]:
  at the moment i dont have time for this, but if somebody like,
  SSH-access and SSH to serial-line is possible (screen-session).

 Did you fix anything to boot it?

 no, i just removed the broken-flag and started the build.

 Mine says (with both ext4 and squashfs images):

 i just used 'dd' to write 'openwrt-rb532-combined-jffs2-128k.bin' to
 my CF-card, e.g. 'dd if=openwrt-rb532-combined-jffs2-128k.bin of=/dev/sda'

 please send me a link to your image, i will try to boot that...bye, bastian

Tried jffs2 image - same result.
Could it be because I have 532A version? That one was with bigger RAM
(64M) with no other differences (as far as I know).
Images here:
https://box.tet.rtu.lv/public.php?service=filest=1ed7993af28d2878e315eb415bea45c5

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Roman Yeryomin
On 11 April 2014 18:39, Roman Yeryomin leroi.li...@gmail.com wrote:
 On 11 April 2014 17:54, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 16:48]:
  at the moment i dont have time for this, but if somebody like,
  SSH-access and SSH to serial-line is possible (screen-session).

 Did you fix anything to boot it?

 no, i just removed the broken-flag and started the build.

 Mine says (with both ext4 and squashfs images):

 i just used 'dd' to write 'openwrt-rb532-combined-jffs2-128k.bin' to
 my CF-card, e.g. 'dd if=openwrt-rb532-combined-jffs2-128k.bin of=/dev/sda'

 please send me a link to your image, i will try to boot that...bye, bastian

 Tried jffs2 image - same result.
 Could it be because I have 532A version? That one was with bigger RAM
 (64M) with no other differences (as far as I know).
 Images here:
 https://box.tet.rtu.lv/public.php?service=filest=1ed7993af28d2878e315eb415bea45c5


Just noticed that mine has board=500 and yours board=500r5 in
cmdline. So yours is probably newer, but how they differ then?

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [11.04.2014 17:56]:
 Tried jffs2 image - same result.
 Could it be because I have 532A version? That one was with bigger RAM
 (64M) with no other differences (as far as I know).
 Images here:
 https://box.tet.rtu.lv/public.php?service=filest=1ed7993af28d2878e315eb415bea45c5

strange, your image does not boot here:
http://www.intercity-vpn.de/files/openwrt/Routerboard_rb532_dmesg-Yeryomin.txt

please try to copy my image on you CF-card and boot:
http://www.intercity-vpn.de/files/openwrt/rb532.bin

seems generating the rootfs is broken for you somehow.

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Roman Yeryomin
On 11 April 2014 19:13, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 17:56]:
 Tried jffs2 image - same result.
 Could it be because I have 532A version? That one was with bigger RAM
 (64M) with no other differences (as far as I know).
 Images here:
 https://box.tet.rtu.lv/public.php?service=filest=1ed7993af28d2878e315eb415bea45c5

 strange, your image does not boot here:
 http://www.intercity-vpn.de/files/openwrt/Routerboard_rb532_dmesg-Yeryomin.txt

 please try to copy my image on you CF-card and boot:
 http://www.intercity-vpn.de/files/openwrt/rb532.bin

hm.. it worked

 seems generating the rootfs is broken for you somehow.

ptgen fault?
I have 64bit environment if that matters...

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [11.04.2014 20:18]:
 .and panicked about 10 minutes later:
 http://pastebin.com/vuABEvPE

we should made this discussion offlist via PM!

this crash is enforced from a special script, read
the log carefully: system_crashreboot() reason: olsrd missing

so dont mind, it's working - i will compare both
JFFS2-parts. i'am building on debian 7.3:

on x86_64 with 4 x Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz

so it should not differ from your build, but there
are a lot if possible things 8-)

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Jonas Gorski
On Fri, Apr 11, 2014 at 8:28 PM, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 20:18]:
 .and panicked about 10 minutes later:
 http://pastebin.com/vuABEvPE

 we should made this discussion offlist via PM!

Why? This is potentially interesting stuff for other rb532 users, so
why not keep it on the list.


Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Bastian Bittorf
* Roman Yeryomin leroi.li...@gmail.com [11.04.2014 20:18]:
  seems generating the rootfs is broken for you somehow.
 
 ptgen fault?
 I have 64bit environment if that matters...

please go into 'target/linux/rb532/image/gen_image.sh' and
before ptgen, insert this:

echo /tmp/BLA OUTPUT=$OUTPUT KERNELSIZE=$KERNELSIZE KERNELIMAGE=$KERNELIMAGE 
ROOTFSSIZE=$ROOTFSSIZE ROOTFSIMAGE=$ROOTFSIMAGE
echo /tmp/BLA ptgen-out: '$( ptgen -o $OUTPUT -h 16 -s 32 -t 0x27 -p 
${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m )'

after ptgen, insert this:
echo /tmp/BLA 1: $1 3: $3

do an 'make' and show me your results in '/tmp/BLA', here:

###
OUTPUT=/home/bastian/owrtbuild/openwrt/bin/rb532/openwrt-rb532-combined-jffs2-128k.bin
KERNELSIZE=4
KERNELIMAGE=/home/bastian/owrtbuild/openwrt/bin/rb532/openwrt-rb532-jffs2-128k.kernel
ROOTFSSIZE=48
ROOTFSIMAGE=/home/bastian/owrtbuild/openwrt/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-rb532/root.jffs2-128k
ptgen-out: '16384
4440064
4472832
50577408'
1: 16384 3: 4472832
###

bye, bastian

PS: will keep it on list, even if this goes deep...
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-11 Thread Roman Yeryomin
On 11 April 2014 23:07, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Roman Yeryomin leroi.li...@gmail.com [11.04.2014 20:18]:
  seems generating the rootfs is broken for you somehow.

 ptgen fault?
 I have 64bit environment if that matters...

 please go into 'target/linux/rb532/image/gen_image.sh' and
 before ptgen, insert this:

 echo /tmp/BLA OUTPUT=$OUTPUT KERNELSIZE=$KERNELSIZE 
 KERNELIMAGE=$KERNELIMAGE ROOTFSSIZE=$ROOTFSSIZE ROOTFSIMAGE=$ROOTFSIMAGE
 echo /tmp/BLA ptgen-out: '$( ptgen -o $OUTPUT -h 16 -s 32 -t 0x27 -p 
 ${KERNELSIZE}m -t 0x83 -p ${ROOTFSSIZE}m )'

 after ptgen, insert this:
 echo /tmp/BLA 1: $1 3: $3

 do an 'make' and show me your results in '/tmp/BLA', here:

 ###
 OUTPUT=/home/bastian/owrtbuild/openwrt/bin/rb532/openwrt-rb532-combined-jffs2-128k.bin
 KERNELSIZE=4
 KERNELIMAGE=/home/bastian/owrtbuild/openwrt/bin/rb532/openwrt-rb532-jffs2-128k.kernel
 ROOTFSSIZE=48
 ROOTFSIMAGE=/home/bastian/owrtbuild/openwrt/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-rb532/root.jffs2-128k
 ptgen-out: '16384
 4440064
 4472832
 50577408'
 1: 16384 3: 4472832
 ###

For the jffs2-128k part (looks same):

OUTPUT=/home/roman/dev/openwrt/rb532/bin/rb532/openwrt-rb532-combined-jffs2-128k.bin
KERNELSIZE=4
KERNELIMAGE=/home/roman/dev/openwrt/rb532/bin/rb532/openwrt-rb532-jffs2-128k.kernel
ROOTFSSIZE=48
ROOTFSIMAGE=/home/roman/dev/openwrt/rb532/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-rb532/root.jffs2-128k
ptgen-out: '16384
4440064
4472832
50577408'
1: 16384 3: 4472832


Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-10 Thread Roman Yeryomin
On 9 April 2014 15:55, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Imre Kaloz ka...@openwrt.org [09.04.2014 14:53]:
 Because no one tested it since the kernel has been upgraded, and we don't 
 have a board to do anymore ;)

 ok, will do some more tests and send a patch with re-enables it.
 (board will run in our testnet)


I would even use it if it really works...
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-10 Thread Florian Fainelli
2014-04-10 13:39 GMT-07:00 Roman Yeryomin leroi.li...@gmail.com:
 On 9 April 2014 15:55, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Imre Kaloz ka...@openwrt.org [09.04.2014 14:53]:
 Because no one tested it since the kernel has been upgraded, and we don't 
 have a board to do anymore ;)

 ok, will do some more tests and send a patch with re-enables it.
 (board will run in our testnet)


 I would even use it if it really works...

What exactly does that mean? If you have access to HW, please do test
and submit patches against it. Thanks!

-- 
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-10 Thread Roman Yeryomin
On 11 April 2014 00:19, Florian Fainelli flor...@openwrt.org wrote:
 2014-04-10 13:39 GMT-07:00 Roman Yeryomin leroi.li...@gmail.com:
 On 9 April 2014 15:55, Bastian Bittorf bitt...@bluebottle.com wrote:
 * Imre Kaloz ka...@openwrt.org [09.04.2014 14:53]:
 Because no one tested it since the kernel has been upgraded, and we don't 
 have a board to do anymore ;)

 ok, will do some more tests and send a patch with re-enables it.
 (board will run in our testnet)


 I would even use it if it really works...

 What exactly does that mean? If you have access to HW, please do test
 and submit patches against it. Thanks!


Bastian said he will. I can help testing for sure.
I can try what we have now a bit later but not sure I will have time
to fix it right now if it's broken.

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-09 Thread Imre Kaloz

On Wed, 09 Apr 2014 14:39:04 +0200, Bastian Bittorf bitt...@bluebottle.com 
wrote:


why is it marked as 'broken'? i just compiled it with
trunk r40422/kernel 3.10.34 and it boots fine.


Because no one tested it since the kernel has been upgraded, and we don't have 
a board to do anymore ;)


Imre
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] target rb532 / routerboard

2014-04-09 Thread Bastian Bittorf
* Imre Kaloz ka...@openwrt.org [09.04.2014 14:53]:
 Because no one tested it since the kernel has been upgraded, and we don't 
 have a board to do anymore ;)

ok, will do some more tests and send a patch with re-enables it.
(board will run in our testnet)

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel