First Post

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

First Post

Wed Jun 22, 2016 5:48 pm

Wow the VoCore2 Forum is open and I got first post!

In any case I've been playing with the VoCore2, here is some of the things I'm working on:

OpenWrt Chaos Calmer

My github repo is here

If you want to give it a try you need to switch to the VoCore2 branch first, there are two ways to do this depending on how you download it:
If you use
Code: Select all
git clone https://github.com/noblepepper/openwrt-chaoscalmer
then you need to
Code: Select all
git checkout VoCore2

If you download the zip file from the webpage, change the branch drop down to VoCore2 before you download it, the file will be named openwrt-chaoscalmer-VoCore2.zip

This adds the MTK proprietary driver to Chaos Calmer, thanks to MediaTek-Labs/linkit-smart-7688-feed. All that needed to be done was changes so it will recognize any mt7628 target instead of only the LinkIt7688.

There a two additions to the normal Chaos Calmer, you can find both under Ralink SDK in make menuconfig. The first is the the WiFi driver which gives the same performance as the image that came on the VoCore2. You do need a uart or ethernet connection to the VoCore2 to activate the WiFi, either delete the
Code: Select all
option disabled 1
line in /etc/config/wireless or enable the WiFi through Luci. There is also a utility that lets you change pinmuxes from the command line like this:
Code: Select all
root@OpenWrt:/# mt76x8_pinmux
mt76x8_pinmux set <group> <function>
mt76x8_pinmux get
root@OpenWrt:/# mt76x8_pinmux get
Group i2c - i2c [gpio]
Group uart0 - [uart] gpio
Group uart1 - [uart] gpio
Group uart2 - uart [gpio] pwm
Group pwm0 - pwm [gpio]
Group pwm1 - pwm [gpio]
Group refclk - refclk [gpio]
Group spi_s - spi_s [gpio]
Group spi_cs1 - [spi_cs1] gpio refclk
Group i2s - [i2s] gpio pcm
Group ephy - [ephy] gpio
Group wled - wled [gpio]
root@OpenWrt:/# mt76x8_pinmux set uart2 uart
set pinmux uart2 -> uart
root@OpenWrt:/# mt76x8_pinmux get
Group i2c - i2c [gpio]
Group uart0 - [uart] gpio
Group uart1 - [uart] gpio
Group uart2 - [uart] gpio pwm
Group pwm0 - pwm [gpio]
Group pwm1 - pwm [gpio]
Group refclk - refclk [gpio]
Group spi_s - spi_s [gpio]
Group spi_cs1 - [spi_cs1] gpio refclk
Group i2s - [i2s] gpio pcm
Group ephy - [ephy] gpio
Group wled - wled [gpio]
root@OpenWrt:/#


A better U-boot
My github repo is here
The same warnings apply as with replacing the bootloader anytime, you can end up with a brick easily. You should have a way to write the flash chip directly before you try.

It has a web page upload option and USB storage upload option, you can activate either with the uboot command line or with a push button on the WDTRST input. It also can change baudrate with
Code: Select all
setenv baudrate 460800
saveenv
Make sure to load a OpenWrt image configured for the same baudrate so you don't get garbage on the connection. Yes, I am having good luck with speeds up to 460800, 921600 is too fast.

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: First Post

Tue Jun 28, 2016 2:21 am

better to use 115200, because most USB2TTL max speed is 115200 :)

pwgen
 
Posts: 3
Joined: Thu Jun 23, 2016 3:40 pm

Re: First Post

Wed Jun 29, 2016 7:38 am

hey noblepepper

can you add your ( running ) openwrt .config file please.

/pwgen

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: First Post

Wed Jun 29, 2016 1:28 pm

Yes, I was very pleasantly surprised when everything seemed to work fine at the higher speeds. I am just using cheap PL2303HX based usb to ttl converters that I got on ebay.

That is the beauty of being able to change the baudrate, you can play around and see what the speed limit is without having to flash uboot.

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: First Post

Sat Jul 02, 2016 9:38 pm

@pwgen - Here you go-

No much activated if IIRC, just luci and the mtk stuff
.config.tar.bz2
(19.88 KiB) Downloaded 769 times

You probably want this too
VOCORE2.dts.tar.bz2
(722 Bytes) Downloaded 732 times


Sorry about the archiving, phpBB won't accept these in their native format.

These may not work unless you pull my modified chaos calmer, make sure you use the VoCore2 branch. You can see the changes here some typical "add support for" stuff all over the place and the mtk-linkit7688-feed (also with a few changes by me)

Let me know if these don't work, I'm mucking about with a frame buffer driver and pulled these from a backup copy.

pwgen
 
Posts: 3
Joined: Thu Jun 23, 2016 3:40 pm

Re: First Post

Mon Jul 04, 2016 8:23 pm

thx a lot.

any idea how to get the i2c running ?

i got the i2c-custom module doing something ( not sure if it worked, but it showed at least a i2c dev entry )
the i2c-ralink driver was silent, no kernel message. nothing.



can i get somewhere the datasheet for mt7628 ?

/pwgen

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: First Post

Fri Jul 08, 2016 11:34 am

Hi, you can download it at vonger.cn/upload/MT7628_Full.pdf.
I2C custom works well for me, but official driver not.

Garrettpn
 
Posts: 1
Joined: Thu Aug 11, 2016 1:21 pm
Location: Bulgaria

First Post

Sun Sep 11, 2016 1:34 am

Lol, I actually saw the post and wondered where the pic was. Lol. I would have guessed roo for sure based on the op.


Thanks,
Everett
AP 15710 Diver
Sent from my iPhone

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 45 guests