Jump to content

remsnet

Members
  • Posts

    15
  • Joined

  • Last visited

  1. debian & ubuntu are known to heavy depend on correct LANG settings. Many of the deb config scripts use it. i can just do an suggesstion and PUSH sutch settings into ~/.profile and ~/.bashrc as well as for systemwide : ~:/etc/default# cat console-setup # CONFIGURATION FILE FOR SETUPCON # Consult the console-setup(5) manual page. ACTIVE_CONSOLES="/dev/tty[1-6]" CHARMAP="UTF-8" CODESET="Lat15" FONTFACE="Fixed" FONTSIZE="8x16" VIDEOMODE= # The following is an example how to use a braille font # FONT='lat9w-08.psf.gz brl-8x8.psf' ~:/etc/default# cat locale # File generated by update-locale LANG="de_DE.UTF-8"
  2. i am using Igors kernel 3.19.3 .. from his build lib ...on the way to move to kernel 4.0.5..
  3. I am use igors lib to get an suffucently patches kernel source for bana Pi R1 and for test builds i use this script for my unattened kernel builds. This allows directly install an fresh kernel and make an backup of the old kernel. my custom kernel .config is then at $REL stored and used . usage path : run igors compile.sh , wait till the source download done , do an CRTL-C once the kernel wants to compile from his lib then i.e : fw1 /t/GIT/output/linux-mainline # cp .config /t/GIT/.test5 fw1 /t/GIT/output/linux-mainline # /t/GIT/build.sh Usage: /t/GIT/build.sh {build|timestamp|clean|install|install_uImage|install_dtbs|install_modules|install_uImage|install_headers|kversion|backup} fw1 /t/GIT/output/linux-mainline # /t/GIT/build.sh build --------------------code--------------------------------------------------------- #!/bin/bash # http://piprojects.net/de/banana-pi-kernel-3-18-rc-bauen/ # # debug #set -x # # GIT=/t/GIT OUT=$GIT/output SOURCES=$OUT/linux-mainline INST=/usr/bin/install REL=$GIT/.test5 timestamp() { D=`date +"%Y%M%d_%H%M"` } cp_cfg() { cd $SOURCES test -f $REL && cp -p $REL .config } k_v() { # cd $SOURCES cp_cfg make oldconfig make modules_prepare kversion=$(make -s kernelrelease) echo $kversion } clean_kernel() { # cd $SOURCES # test -f .config && cp .config $GIT/.config-$kversion-$timestamp make clean make distclean } backup_boot() { test -d /boot.bak && rm -rf /boot.bak test -d /boot.bak || mkdir /boot.bak cd /boot cp -rp ./* /boot.bak cd } backup_dtb() { cp -rp /boot/dtb /boot.bak/ # test -f /boot/dtb && rm -rf /boot/dtb test -d /boot/dtb && rm -rf /boot/dtb test -d /boot/dtb || mkdir -p /boot/dtb } compile_uImage() { # cd $SOURCES clean_kernel k_v # # https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html CPPFLAGS="-Ofast" CFLAGS="-Ofast" # # make -j3 dtbs modules make -j3 LOADADDR=0x40008000 uImage # timestamp } compile_docs() { cd $SOURCES k_v # make mandocs # timestamp } install_modules() { cd $SOURCES # make modules_install INSTALL_MOD_PATH=/ # timestamp } install_dtbs() { # cd $SOURCES k_v # backup_dtb if [ -d /boot/dtb ] && [ -d /boot.bak/dtb ]; then test -d /boot/dtb || mkdir -p /boot/dtb cp -rp arch/arm/boot/dts/*.dtb /boot/dtb else test -d /boot/dtb || mkdir -p /boot/dtb cp -rp /boot/dtb /boot.bak/ # cp -rp arch/arm/boot/dts/*.dtb /boot fi } install_BPi_dtbs() { cd $SOURCES # backup_dtb # echo "Installing New sun7i-a20-bananapi.dtb " $INST -m 755 arch/arm/boot/dts/sun7i-a20-bananapi.dtb /boot/sun7i-a20-bananapi.dtb echo done ls -la /boot/sun7i-a20-bananapi.dtb } install_headers() { cd $SOURCES k_v make headers_install ARCH=armv7l INSTALL_HDR_PATH=/usr/include } install_docs() { cd $SOURCES k_v make installmandocs } install_BPi_uImage() { # cd $SOURCES # backup_boot # k_v # echo "Installing New uImage" $INST -m 755 arch/arm/boot/uImage /boot/uImage $INST -m 755 arch/arm/boot/Image /boot/kernel.img install_BPi_dtbs # echo "Installing New uImage" $INST -m 644 .config /boot/config-$kversion echo "Installing New symvers-$kversion " $INST -m 644 ./Module.symvers /boot/symvers-$kversion echo "" echo "done" ls -la /boot/symvers-$kversion /boot/kernel.img /boot/uImage /boot/config-$kversion /boot/sun7i-a20-bananapi.dtb echo "" } install_kernel() { # backup_boot # install_modules # install_BPi_dtbs # install_uImage # install_headers # install_docs } build_deb-pkg() { # # cd $SOURCES # backup_boot # k_v # #http://debian-handbook.info/browse/de-DE/stable/sect.kernel-compilation.html fakeroot-u make deb-pkg } build_targz-pkg() { # # cd $SOURCES # backup_boot # k_v # fakeroot-u make targz-pkg } case "$1" in build) echo "Kernel build" compile_uImage echo "Kernel build done" timestamp ;; clean) echo "Kernel cleanup" clean_kernel ;; install) echo "install all" install_kernel ;; install_uImage) echo "install install_uImage" install_BPi_uImage ;; install_dtbs) echo "install dtbs" install_BPi_dtbs ;; install_modules) install_modules ;; timestamp) timestamp echo "timestamp $D" ;; kversion) k_v ;; backup) backup_boot ;; *) echo "Usage: $0 {build|timestamp|clean|install|install_uImage|install_dtbs|install_modules|install_uImage|install_headers|kversion|backup}" ;; esac exit 0
  4. shure yes - the extact stable 5.0 voltage THE the known KEY . Many either on RPi faced such from standard devices with BAD Powersupplys. i just reference to http://elinux.org/RPi_Powered_USB_Hubs
  5. dear igor .. see #63 https://github.com/igorpecovnik/lib/issues/63
  6. @dear Igior and others My R1 fw1 run fine past 2 month with the 3.19.3. now its time to move to 4.0.x Igor - many thanks for KERNEL_CONFIGURE at your scripting implementing . This shortcut my work with automated rebuild kernel an bit -- but not fully. I have the need to been able to push my own kernel .config into your https://github.com/igorpecovnik/lib in an automated way. But how about to push an custom .config into that? welll ... My suggestion are here top add i.e at your compile.sh : KERNEL_CUSTOM_CONFIG="/path/file" if file env set , use it instead from default patched kernel .config How you think about this Idea ?
  7. that will take some time days to get an sufficent MODED kernel .config that lets build , compile errors will reported to igors Lib as allways.
  8. i can put that on my dropbox once tested. currently compiling an full moduarised kernel ON the R1 - no crosscompile - using the ssd as compile storage.
  9. i use igors lib to build my own fully patched kernels ... and that works fine. root@fw1 ~ # vgs VG #PV #LV #SN Attr VSize VFree fsys1 1 2 0 wz--n- 119,24g 81,54g root@fw1 ~ # lsmod Module Size Used by nfsd 245319 2 exportfs 3340 1 nfsd ax88179_178a 13488 0 usbnet 23171 1 ax88179_178a arc4 1598 2 rtl8192cu 90112 0 rtl_usb 11843 1 rtl8192cu rtl8192c_common 57293 1 rtl8192cu rtlwifi 81947 3 rtl_usb,rtl8192c_common,rtl8192cu mac80211 296619 3 rtl_usb,rtlwifi,rtl8192cu root@fw1 ~ # uname -a Linux fw1 3.19.3-rc5bpi #1 SMP Sun Feb 8 09:58:58 UTC 2015 armv7l GNU/Linux fw1 ~ # Today working on latest build 4.0.x .. :-)
  10. that needs lib #66 as weell https://github.com/igorpecovnik/lib/issues/66
  11. raised lib #66 issue , see https://github.com/igorpecovnik/lib/issues/66
  12. .. .yes read like power issue. if you Think i.e 1000mA usb loader are good eoth for power all this - you fool yourself. i have an 5000mA powerLoader connected to an poweree usb hub and my R1 + wifi, + mouse + keyboard + ssd at R1 and umts modem as well.
  13. [ 1046.323236] ata1.00: error: { ABRT } [ 1046.327870] ata1.00: configured for UDMA/133 (device error ignored) [ 1046.327927] ata1.00: device reported invalid CHS sector 0 [ 1046.328085] blk_update_request: I/O error, dev sda, sector 0 [ 1046.328168] JBD2: recovery failed [ 1046.328209] EXT4-fs (sda1): error loading journal [ 1046.328221] ata1: EH complete root@lamobo:~#are you shure to have sufficentky provide power ? ssd can consume +1Amp while booting from it... i.e: banapi r1 = 1amp wifi another 1amp and the ssd aother 1amp .. at boot
  14. my answer for OTG disabling on OLD kernels : any ARM kernel below 3.11 known to have a lot of harsch bugs that make USB useless , system unstable. so STOP use kernel 3.4. - 0 read CERT allerts for OUTdated kernels - 0.1 most OTG bugs had been beed 2 years ago on ARM6 & 7 with kernel 3.12.x and up on rasberry PI's see at git //github.com/raspberrypi/linux.git for OTG armhf patches. -1 update kernel Kick the old 3.4.x kernels of your desk and servers. use https://github.com/igorpecovnik/lib, with KERNEL_ONLY="yes" and KERNEL_CONFIGURE="no" re-enable complete USB stuff , as modules , INCLUDE OTG - 2 if custom kernel modules , port them , give igor patches .
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines