8devices / carambola2

Carambola 2 - an AR9331/SoC based PCB
GNU General Public License v2.0
55 stars 43 forks source link

cannot replicate the out-of-the-box setup #2

Closed jcw closed 11 years ago

jcw commented 11 years ago

I'm having trouble generating an image which acts more or less the same and has the same size as the one at http://pkg.8devices.com/?dir=v2.4/carambola2/

The generated image, after following instructions on the wiki, does work, but does not have any luci config pages. I did follow the instructions on setting up luci.

Would it be possible to share the .config file etc, as used in the distribution?

madoxnet commented 11 years ago

What do you mean does not contain any luci config pages?

I've noticed that the 35770 by default will generate using the old LuCi default theme, whereas the original OpenWrt installed had the new LuCi default theme (bootstrap).

Or do you mean you didn't install luci? ./scripts/feeds/install -a -p luci

[Uploading my images and config files soon at www.madox.net if you're interested] PS : Thanks for the power measurement :)

jcw commented 11 years ago

I did install LuCi, but the /www directory was empty, I think. I can redo the entire openwrt setup from scratch - would help if you could point me to the right pages on the wiki to follow for C2 image build.

Is this wiki page the most up-to-date starting point for C2 w/ 2.4 image?

madoxnet commented 11 years ago

So in make menuconfig you selected Luci and marked it with a <*>?

See: http://8devices.com/wiki_carambola/doku.php/carambola_luci

If you're curious, my .config is in http://www.madox.net/carambola2/35770_2013-05-11/.config - that's not the image I use though, I use ImageBuilder to further customize.

... and only now do I realize it is the May 12... not May 11... oops :)

madoxnet commented 11 years ago

Sorry I didn't notice you said you've followed the carambola_luci wiki already.

I am able to generate a openwrt themed luci image with no issues. My .config is above, my actual image build uses these packages :

PACKAGES="block-mount \ libusb-1.0 \ luci \ luci-app-ntpc \ luci-app-upnp \ luci-proto-3g \ luci-theme-bootstrap \ kmod-fs-ext4 \ kmod-fs-ntfs \ kmod-fs-vfat \ kmod-nls-cp437 \ kmod-nls-iso8859-1 \ kmod-nls-iso8859-2 \ kmod-nls-utf8 \ kmod-usb-acm \ kmod-usb-ohci \ kmod-usb-serial \ kmod-usb-serial-belkin \ kmod-usb-serial-ch341 \ kmod-usb-serial-cp210x \ kmod-usb-serial-ftdi \ kmod-usb-serial-option \ kmod-usb-serial-pl2303 \ kmod-usb-serial-ti-usb \ kmod-usb-serial-wwan \ kmod-usb-storage \ kmod-usb-uhci \ kmod-usb2 \ usbip \ usbip-server \ kmod-video-gspca-core \ kmod-video-uvc \ restorefactory \ lualibusb1 \ luasocket \ usb-modeswitch \ usb-modeswitch-data \ python \ pyserial \ python-imaging-library \ python-libusb1 \ python-sqlite3 \ python-gzip \ python-json"

jcw commented 11 years ago

@madoxnet - could you help me out with the basics? I did get an openwrt build working a few days back, but now I'm confused. I only need 8devices/carambola2 from github, right? There's also a carambola2-luci. and a carambola2-packages repository.

valinskas commented 11 years ago

Hi,

build configuration '.config' is commited to the repository. My guess you need to install and update feeds.

$ cd carambola/
$ ./scripts/feeds update
$ ./scripts/feeds install -a
$ make

This will take a while ... it will end up building about ~1100 packages.

valinskas commented 11 years ago
$ grep =y$ .config | wc -l
513
$ grep =m$ .config | wc -l
976

Where =y (available on the firmware image), =m install-able via opkg.

jcw commented 11 years ago

That's a nice way to check things - thx. I just got the build to work. First build was plain git clone of Apr-24, just to make sure the basics are right. Then, I followed the luci instructions on the wiki, but with these changes:

the proper line for is already correct on github, ignore the wiki page:
    src-git luci git://github.com/8devices/carambola2-luci.git
then do these:
    ./scripts/feeds update packages luci
    ./scripts/feeds install -a -p luci
follow the select instructions, but load as "*" not "M" !
    luci-mod-admin-core  <=  not needed
    libiwinfo-lua  <=  already selected

Success - LuCi web access works!

# uname -a
Linux c2dev 3.7.9 #2 Sun May 12 17:47:54 CEST 2013 mips GNU/Linux

And, for reference:

$ grep =y$ .config | wc -l
454
$ grep =m$ .config | wc -l
291
jcw commented 11 years ago

FWIW, this is about github/carambola2, not carambola. Thanks again for all the help in figuring this out.

valinskas commented 11 years ago

Congrats! It sounds like problem is solved. Closing ticket.