-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
McDebian 5.6.14 Beta #69
Comments
Very cool!!! Thanks for working on this. I'll see about testing it soon. |
It's working awesome! |
Wasn't so good for me- got: NAND read: device 0 offset 0xa00000, size 0x500000 Booting kernel from Legacy Image at 02000000 ...Image Name: linux |
Which WRT model do you have? |
It's a WRT1900AC v1 |
-rw-r--r-- 1 root root 4935885 Feb 14 02:45 McDebian-Buster-WRT1900AC-V1-FW_VER1_kernel_4.19.91.img are the two kernels I've tried, with the first working just fine, but the second throwing the above error. root@nord:~# sha1sum McDebian-Buster-WRT1900AC-V1-FW_VER1_kernel_* |
Thanks I will start troubleshooting this on my WRT1900AC V1. |
I checked the checksum and it matches your results. The update loaded fine on my WRT1900AC V1. Double check you have the below set in u-boot:
|
Hello Chad! I think it was #7 (comment) |
Hi @ValCher1961 😃 I've had issues with CRC before but it's been intermittent. It would be great if @sfrost could confirm that your solution works for him. Strange though that 0x500000 works for me. |
I've had them set to 0x500000 for a long time.
I can certainly try increasing that... Not sure why it's working for you and not for me. |
@sfrost did you try @ValCher1961 suggestion to calculate the kernel size? |
Greetings ....from Greece |
Hi @Mark-GR73, I'm glad its working well for you. Did you implement the nftables flowtable? I'm not sure were to go with McDebian. At this point everything I wanted to accomplish with this project has been completed with the upcoming release. All I need to do going forward is kernel updates and Debian rootfs updates on a regular basis. I would have liked to implemented McDebian on some other routers like the EA9500 but they use the Broadcom CFE boot loader which I'm not familiar enough with. I have created a McDebian-Portable project (not uploaded to Github) which can be cloned to a USB Key or drive that boots Debian on UEFI, MBR, x32 and x64 systems (universal) with some built in IT utilities like Pogostick for resetting Windows user password for service. I've been experimenting with implementing Docker containers, KVM hypervisor and ZFS filesystem (or ZFS Raidz) for open source server deployments but it's a lot of work unless I opt for the unRaid approach which is good as well I suppose. |
Thanks for your reply. You make all this work ,i believe the cfe of broadcom it is a peace of cake for you. Your job is a wild horse. But you break the rules.. |
@Mark-GR73 I don't do penetration testing in my IT work. Its only when customers forget their new passwords or admin passwords that I use Pogostick to reset it for them. Other than that I use McDebian-Portable to repair partitions and drives. |
@Mark-GR73 CFE is complicated when it comes to configuring it to boot from usb. Especially since it also requires a initrd packed into the firmware. |
@Mark-GR73 yes please send me those CFE samples. |
On Weekend ,i hope to send you. My interface config: iface wan inet6 auto post-up nft -f /etc/nftables.conf################################################################ propably something wrong with nftables.conf ,i think |
A typing wrong ################################################################ iface wan inet6 auto |
Comment out line "pre-up ifup --ignore-errors br0" Run nft commands to check if it works:
If "table inet x" is listed then the flowtable is active. |
If you have an older McDebian rootfs you may need to "apt-get install nftables". |
-With this type of config ,the results for the wan side are OK ... root@MCDEBIAN:~# apt list --installed | grep -i nftab root@MCDEBIAN:~# nft list tables root@MCDEBIAN:~# ls /etc/ | grep nfta Part-of etc/networks/interfaces file.. iface wan inet6 auto auto br0 ┌─[ote@parrot]─[~] -But, auto br0 root@MCDEBIAN:~# nft list tables root@MCDEBIAN:~# ip route root@MCDEBIAN:~# ping github.com ┌─[ote@parrot]─[~] And of course if a remove the line root@MCDEBIAN:~# ping github.com ┌─[✗]─[ote@parrot]─[~] |
I think whats happening is you have a PPPoe internet connection and haven't updated the firewall files to work with that connection. In McDebian the wan interface is the wan Ethernet port. If you have a PPPoe connection you need to update the firewall files as described in this Wiki article: With this beta a third file will need to be updated for the ppp0 interface:
If you didn't do these changes the firewall wouldn't be working on the ppp0 interface. |
You can check if the flowtable is working by listing the flowtable. If the counter is going up it's working:
|
@sfrost any luck getting the firmware running on your WRT1900AC V1? |
The connection to wan is pppoe . with and wiith configured as must the conf fille auto br0 then ┌─[ote@parrot]─[~] success responce from client side. But the results from flowtable are empty.. root@MCDEBIAN:~# /etc/ nft list table inet x or, root@MCDEBIAN:~#/etc/ nft list table inet nat and of course as we said before,the connectivity status root@MCDEBIAN:~#/etc/ ping -c 2 google.com and ipv6 root@MCDEBIAN:~#/etc/ ping6 -c 2 google.com Thanks .... |
No the flowtable config is working fine for McDebian. Did you change wan to ppp0 in the |
Thanks for this McBeta, It's great to have nftables. However, I'm hitting a wired speed bottleneck on my 1900AC. I'm getting gigabit link speed between computers connected to the wired LAN ports, but speed drops to around 250 megabits/second when I connect one of the computers to the WAN port and one to the LAN. I tried this with local computers and various cables to make sure it wasn't an ISP or wire problem. When I run an iperf3 speed test with a link between WAN and LAN the cpu usage of the 1900AC spikes to almost 100%, with lots of ksoftirqd usage. I wonder if this is a firewall issue, because I assume that the 1900AC is fast enough to masquerade at gigabit speeds. Also it could be a kernel issue and maybe i should just wait for the next update. Anyway, I thought I'd ask if you have any other hunches about how to remove the bottleneck. |
@LeBrad you will need to follow the flow offloading instruction in the below post: To see if it's offloading the counter values will increase with internet usages on the LAN side:
|
Thanks, hopefully my flow offloading is correct. I installed it using your instructions when I updated to the beta, and it doesn't seem to help with the bottleneck. Here's my firewall:
|
@LeBrad its seem to be offloading properly. The firewall rules look ok. Did you add sudo to your McDebian? I wondering if you are running a ubuntu variant. Did you test iperf3 between to laptop and the WRT? This should get gigabit no matter what. |
Yes, I installed sudo, apt-cache says Testing iperf3 directly to the McWRT was a good idea, it revealed more info about the bottleneck! When my computer is the iperf3 host and the WRT is the client, the link gets full gigabit speed, but when the WRT is the iperf3 host and the computer is the client it only gets a fraction of that speed. Here's the bottlenecked result over a wired connection with the WRT as the host:
|
When doing throughtput testing with iPerf3 keep in mind that "-c" means the client is sending to the host and "-R" the host to send to the client. (upload or download from same iPerf3 host) |
LeBrad, Interesting your nftables ,If you'like post the conf of nftables... Finnally a solution for IPv6 settings for pppoe with Prefix Delegation from ISP. Ipv6 Prefix Delegration pppoe.txt Any additional idea or tip? |
Hi, Now, Now what i need... As primary boot As alternative boot i would like the flexibility to boot a wrt image from internal nand ,for easier maintanance purposes.. Please can you advice me? |
You need a drive connected to the WRT USB 2.0\eSATA port that has the McDebian rootfs and have that operational before you can do anything else. |
Any wiki or to read something? Thanks.. |
https://github.com/Chadster766/McDebian/wiki/3.-Make-Root-File-System |
Thanks for your reply. Could i be useful to Mcdebian project someway? |
Thanks but I'm not sure there is much to do at this point. |
Success u boot booting to load image from esata. A nice question... If the device's nand in this case /dev/mtd5 up to mtd 8 ,are empty ,is there possibility to work as ram ? |
It's possible but I wouldn't recommend it. This type of nand memory can be easily be destroyed by to many write operations where RAM isn't effected in that way. |
Thanks... |
Well .. |
You have to have your boot USB key in the USB 2.0 port due to a u-boot limitation. Your other storage can be connected to the USB 3.0 port. |
Finally , my previous set up was : -If we try with nvme card ,m2 convertor to usb3 .... The results have two different situations .... -Any opinion or advice? |
It is converter's the problem , it is not possible to read it from any linux machine.. -I will try again but with nvme m2 to usb3 Hardware.. -Anyway...thanks.. |
So, just a couple of notes-
Thanks again for this awesome project! My other 1900 continues to run as my firewall, but I don't have any wifi enabled for it and therefore don't need the fix_brdige.sh script and it continues to hum along just fine, and now I've got a spare for it should it ever have issues. |
Unfortunately, Is there any advice probably ? |
Sorry I don't have any suggestion on how to speed that up. |
Well , I try to play with btrfs partitions. Untiil now : Some results: btrfs version modprobe btrfs ls /lib/modules/$(uname -r)/kernel/fs/*/*ko cat /proc/filesystems It has relationship with kernel ? |
I didn't built the kernel with CONFIG_BTRFS_FS option. IMO btrf is an unstable file system. Even if the kernel supports btrf I don't think WRT u-boot supports it as a boot partition. |
Btrfs has no finished with all of new futures to supported yet until now ,i believe it is enough stable, has alot of futures ,and every day growing up .it it is a very good point for playing... I believe it is a good start point for research.. If uboot will boot from nand or other partition scheme it could be to load the root dirs? If we have ready the kernel for this would be nice.. |
Yes btrfs would only need to be added to the kernel in that case. |
I,m waiting... |
I will add the btrfs kernel module to the next McDebian release but have not ETA on that at this time. |
Don't know if BTRFS inside kernel will be better than separate module? One more thing, I hope we can include "veth" support virtual ethernet, so that we can run docker on top of it. |
McDebian 5.6.14 Beta
Updates:
Notes:
I recommend that only users that have TTL access to their WRT routers do McDebian beta testing.
In the WRT1900AC V1 make sure you have the below u-boot envars set to to accommodate the increased kernel size.
Update
Testing has shown that the below point doesn't work for the WRT32000ACM V1 but works on the WRT3200ACM V2.
Firmware:
Root File System Update:
IPv6
To enable IPv6 in this beta release you need to enable radvd:
Then uncomment the IPv6 config lines in:
After that reboot the router.
The text was updated successfully, but these errors were encountered: