Jump to content

Bino Oetomo

Members
  • Posts

    18
  • Joined

  • Last visited

Recent Profile Visitors

1468 profile views
  1. That patch is not good enough tobe added to default building. If the source is fresh downloaded (untouched yet) , it will do the work. But when I re do the build process, it double what it did .... causing a naming conflict when compiling DTB. Sincerely -bino-
  2. dear sir. First check wheter you enable ttyS1 or not. If no, and if you use 3.x kernel : 1. cd /boot 2. bin2fex ./script.bin script.fex 3. cp ./script.fex ./script.fex.orig (just incase) 4. look for uart_paraX section that have type=2 , and enable it i.e : [uart_para4] uart_used = 1 uart_port = 4 uart_type = 2 uart_tx = port:PG10<4><1><default><default> uart_rx = port:PG11<4><1><default><default> 5. fex2bin ./script.fex ./script.bin 6. reboot 7. the easiest method to use gps is via gpsd ...install it 8. edit /etc/default/gpsd : + set USBAUTO to false + set the device to ttyS1 details at : http://www.catb.org/gpsd/ here is mine cat /etc/default/gpsd # Default settings for gpsd. # Please do not edit this file directly - use `dpkg-reconfigure gpsd' to # change the options. START_DAEMON="true" GPSD_OPTIONS="-b -n" DEVICES="/dev/ttyS1" USBAUTO="false" GPSD_SOCKET="/var/run/gpsd.sock" sincerely -bino-
  3. Dear All I Need to implement : http://www.bananapi.com/index.php/forum/interfacing/1575-socketcan-dirver-for-a10-a20 Based on http://forum.armbian.com/index.php/topic/379-learning-device-tree/ I have to do patch to arch/arm/boot/dts/sun7i-a20.dtsi (to add can port) and arch/arm/boot/dts/sun7i-a20-cubieboard2.dts (to move led pins to another PE04/PE05) I take copies of dts and dtsi files from my previous build (so it's touched by igor's script), and make some modification and create a patch 1. cb2can-dtsi.patch : patch to activate can0 at PH20 and PH21 --- a/arch/arm/boot/dts/sun7i-a20.dtsi 2015-11-02 13:10:58.000000000 +0700 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi 2015-11-02 14:09:28.321016044 +0700 @@ -875,6 +875,13 @@ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; }; + can0_pins_a: can0@0 { + allwinner,pins = "PH20","PH21"; + allwinner,function = "can"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; + i2c0_pins_a: i2c0@0 { allwinner,pins = "PB0", "PB1"; allwinner,function = "i2c0"; @@ -1281,6 +1288,16 @@ status = "disabled"; #address-cells = <1>; #size-cells = <0>; + }; + + can0: can@01c2bc00 { + compatible = "allwinner,sun4i-a10-can"; + reg = <0x01c2bc00 0x400>; + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&apb1_gates 4>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; }; i2c4: i2c@01c2c000 { 2. cb2can-dts.patch : dts patch to move leds pins to PE04 and PE 05 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts 2015-11-02 13:10:58.000000000 +0700 +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts 2015-11-02 14:13:50.941004577 +0700 @@ -69,12 +69,12 @@ blue { label = "cubieboard2:blue:usr"; - gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; + gpios = <&pio 4 5 GPIO_ACTIVE_HIGH>; }; green { label = "cubieboard2:green:usr"; - gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; + gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; }; }; }; @@ -162,7 +162,7 @@ &pio { led_pins_cubieboard2: led_pins@0 { - allwinner,pins = "PH20", "PH21"; + allwinner,pins = "PE04", "PE05"; allwinner,function = "gpio_out"; allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; --------------- My question is : 1. Is that a proper patches ? since I could not try it yet. 2. Where is the safest place to place patching proces in the build script ? What if I insert : if [[ $BOARD == cubieboard2 ]] ; then isCAN=`cat .config |grep CONFIG_CAN= |cut -f2 -d"="` if [ "$isCAN" != "n" ]; then echo "WE NEED CAN" patchme "Add CAN port to dtsi" "cb2can-dtsi.patch" "default" "kernel" patchme "Move LED to PE04/PE05 in dts" "cb2can-dts.patch" "default" "kernel" fi fi Start at line 134 of patching.sh ? Sincerely -bino-
  4. another report The image creation still problem. But I thing the debs creation work, with modification at configuration.sh as above. My trial step is this : 1. I boot my board from SD card This SD card is based on your Vanila image. I did debs update using my previous (pre 4.3) compile process Reboot it .... and it give me Linux cubieboard2 4.2.5-sunxi #1 SMP Sat Oct 31 11:24:10 WIB 2015 armv7l GNU/Linux 2. make another debs update using my last build process, now it give me Linux cubieboard2 4.2.5-sunxi #2 SMP Mon Nov 2 13:34:03 WIB 2015 armv7l GNU/Linux So I thing the easiest route to make image is boot the board using your image and do dpkg -i of all new created debs. Sincerely -bino- I have other question .. it's about add another dts patching process to the build script, but I'll post it to new thread.
  5. Dear Sir. Just a report. 1. I do that /lib refetch 2. remove output directory The previous trial before I did refetch also with no output directory, still failed at bootstrap things. But errors about kernel didn't show up after I change value at line 409 in configuration.sh tobe : LINUXDEFAULT="4.2.5" #Used tobe 'master' Yes it show ---> error: pathspec '4.2.5' did not match any file(s) known to git. But the process running well until bootstrap things. sincerely -bino-
  6. dear Sir ... There is no rootfs files/directory found in my PC. I just reboot it. And ... unfor tunately there is another error. Looks like to day there is 4.3 (Yesterday it's 4.2.5) at git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git It cause some more configuration questions appears although I set KERNEL_CONFIGURE="no" I follow all with default values, things like : [ o.k. ] Patching [ kernel 4.3.0 ] [ o.k. ] ... compiler bug [ already reverted ] [ kernel ] [ warn ] ... fix BRCMFMAC AP mode Banana & CT already applied [ kernel ] [ warn ] ... deb packaging fix already applied [ kernel ] [ warn ] ... Banana M2 support, LEDs already applied [ kernel ] [ warn ] ... Cubieboard2 double SD version already applied [ kernel ] [ o.k. ] Patching [ Allwinner H3 support ] 5 out of 5 hunks FAILED -- saving rejects to file drivers/clk/sunxi/clk-sunxi.c.rej 2 out of 2 hunks FAILED -- saving rejects to file Documentation/devicetree/bindings/clock/sunxi.txt.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/clk/sunxi/Makefile.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/clk/sunxi/clk-sun8i-bus-gates.c.rej 3 out of 4 hunks FAILED -- saving rejects to file drivers/clk/sunxi/clk-sunxi.c.rej 1 out of 1 hunk FAILED -- saving rejects to file Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt.rej 3 out of 4 hunks FAILED -- saving rejects to file drivers/reset/reset-sunxi.c.rej 1 out of 1 hunk FAILED -- saving rejects to file arch/arm/boot/dts/Makefile.rej 1 out of 1 hunk FAILED -- saving rejects to file Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt.rej 1 out of 1 hunk FAILED -- saving rejects to file drivers/pinctrl/sunxi/Makefile.rej [ o.k. ] Patching [ u-boot v2015.10 ] [ warn ] ... Add Lamobo R1 already applied [ u-boot ] [ o.k. ] ... Add AW SOM [ u-boot ] [ warn ] ... Add Armbian boot splash already applied [ u-boot ] [ o.k. ] Patching [ other sources ] [ o.k. ] Compiling uboot. Please wait. [ 2015.10 ] [ o.k. ] Target directory [ /home/bino/Documents/igor/output/debs/ ] [ o.k. ] Building deb [ linux-u-boot-next-cubieboard2_4.6_armhf.deb ] [ o.k. ] Compiling kernel [ @host ] scripts/kconfig/conf --oldconfig Kconfig * * Restart config... * * * Control Group support * Control Group support (CGROUPS) [Y/n/?] y Example debug cgroup subsystem (CGROUP_DEBUG) [N/y/?] n Freezer cgroup subsystem (CGROUP_FREEZER) [Y/n/?] y PIDs cgroup subsystem (CGROUP_PIDS) [N/y/?] (NEW) and the build process stopped with last msg : drivers/net/phy/Makefile:6: *** missing separator. Stop. make[2]: *** [drivers/net/phy] Error 2 make[1]: *** [drivers/net] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [drivers/modules.builtin] Error 2 make: *** Waiting for unfinished jobs.... make[1]: `include/generated/mach-types.h' is up to date. [ error ] Kernel was not built [ @host ] Sincerely -bino-
  7. Dear Sir. I really appreciate your enlightenment ... I Got the picture Sincerely -bino-
  8. Dear Sir I realy appreciate your help. But how about the GPIOs part ? I still use that pins (1-6) for other purpose. I also Took a look dtsi .. and found there is no 'normal' gpio definition in dts and dtsi. Sincerely -bino-
  9. Dear All ... My board is cubie2. Let's say I want to move led pins to pins other than PH20-PH21. In 3.x kernel , all we need to do is edit the fex file and compile it to script.bin. The edited parts is (from PH20/PH21 to PE10/PE11) : [gpio_para] gpio_used = 1 gpio_num = 8 gpio_pin_1 = port:PE04<3><default><default><1> gpio_pin_2 = port:PE05<3><default><default><1> gpio_pin_3 = port:PE06<3><default><default><1> gpio_pin_4 = port:PE07<3><default><default><1> gpio_pin_5 = port:PE08<3><default><default><1> gpio_pin_6 = port:PE09<3><default><default><1> gpio_pin_7 = port:PE10<3><default><default><1> gpio_pin_8 = port:PE11<3><default><default><1> [leds_para] leds_used = 1 leds_num = 2 leds_pin_1 = port:PH20<1><default><default><0> leds_name_1 = "green:ph20:led1" leds_default_1 = 1 leds_pin_2 = port:PH21<1><default><default><0> leds_name_2 = "blue:ph21:led2" leds_default_2 = 0 leds_trigger_2 = "heartbeat" become : [gpio_para] gpio_used = 1 gpio_num = 6 gpio_pin_1 = port:PE04<3><default><default><1> gpio_pin_2 = port:PE05<3><default><default><1> gpio_pin_3 = port:PE06<3><default><default><1> gpio_pin_4 = port:PE07<3><default><default><1> gpio_pin_5 = port:PE08<3><default><default><1> gpio_pin_6 = port:PE09<3><default><default><1> [leds_para] leds_used = 1 leds_num = 2 leds_pin_1 = port:PE10<1><default><default><0> leds_name_1 = "green:PE10:led1" leds_default_1 = 1 leds_pin_2 = port:PE11<1><default><default><0> leds_name_2 = "blue:PE11:led2" leds_default_2 = 0 leds_trigger_2 = "heartbeat" My question is , how to do it with vanila (4.x) kernels ? Sincerely -bino-
  10. My build process stoped with [ o.k. ] Install locales [ en_US.UTF-8 ] chroot: failed to run command `/bin/bash': No such file or directory chroot: failed to run command `/bin/bash': No such file or directory chroot: failed to run command `/bin/bash': No such file or directory chroot: failed to run command `/bin/bash': No such file or directory [ error ] Installation of package failed I take a look at 'debootstrap.sh' Aller 'Install locales' come at line 146, The command is at line 147 is : LC_ALL=C LANGUAGE=C LANG=C chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y -qq install locales" while .... there is another similar 'chroot $DEST/cache/sdcard /bin/bash' command before it that succeed. Note : My build host is i686 Precise. Can any body give me a clue to fix it ? Sincerely -bino-
  11. Well .... Since I decide to use cubieboard and armbian as my embeded system development base, it'll good for me to check this sub-forum frequently. But if you thingking to let me give my hand, kindly please first send me email about the rule , job, and expectation .. i need to know if i'm good enough for this. Sincerely -bino-
  12. errhhh How to mark this thread as 'solved' ? Sincerely -bino-
  13. 100% right. The last Legacy-kernel Image (i use Jesse) is working greate as expected. Currently I use PH20/PH21 to MUX4 , while by default they're connected to mux1 for status leds. Hmmm ... its time to trace the board and cut the line. I really appreciate your help. Sincerely -bino-
  14. dear Sir I read your response 2 days ago ... but I didn't response back ... I just don't want to push you make another response while in weekend. Now , I'm preparing new clean VM box just to do all this build thing. I'll back as soon as some new progress appear. Sincerely -bino-
  15. Wow !!! A very fast response .. I really appreciate it I'm not good in 'playing with the config'. Do you mean '.config' ? If So ... I'll take dumb stupid workaround. I'll try to compile 'kernel only' for both ... and try to compare both '.config' generated by the process ... Sincerely -bino-
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines