Why does my pocket beagle not boot with buildroot ? Stuck in u-boot - beagleboneblack

I am stuck in u-boot on pocketbeagl.
I tried following :
https://www.digikey.com/eewiki/display/linuxonarm/PocketBeagle#PocketBeagle-InstallKernelandRootFileSystem
with the exception of replacing the debian 9 with a buildroot rootfs.
However, the u-boot does not boot to linux.
My SD partitoning is as follows:
1. Raw partiton containing MLO and u-boot
2. A single ext4 rootfs partiton having the buildroot
3. The kernel and dts set up in rootfs in rootfs under /boot
Here is the boot partition:
=> ls mmc 0 boot
<DIR> 4096 .
<DIR> 4096 ..
16 uEnv.txt
10281472 vmlinuz-4.19.31-ti-r18
<DIR> 4096 dtbs
Here is my env:
=> printenv
arch=arm
args_mmc=run finduuid;setenv bootargs console=${console} ${cape_disable} ${cape_enable} ${cape_uboot} root=PARTUUID=${uuid} ro rootfstype=${mmcrootfstype} ${uboot_detected_capes} ${cmdline}
args_mmc_old=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} ${cape_uboot} root=${oldroot} ro rootfstype=${mmcrootfstype} ${uboot_detected_capes} ${cmdline}
args_mmc_uuid=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} ${cape_uboot} root=UUID=${uuid} ro rootfstype=${mmcrootfstype} ${uboot_detected_capes} ${cmdline}
args_netinstall=setenv bootargs ${netinstall_bootargs} ${optargs} ${cape_disable} ${cape_enable} ${cape_uboot} root=/dev/ram rw ${uboot_detected_capes} ${cmdline}
args_uenv_root=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} ${cape_uboot} root=${uenv_root} ro rootfstype=${mmcrootfstype} ${uboot_detected_capes} ${cmdline}
autoconf=off
baudrate=115200
board=am335x
board_eeprom_header=undefined
board_name=A335PBGL
board_rev=00A2
board_serial=1748EPB00050
boot=${devtype} dev ${mmcdev}; if ${devtype} rescan; then gpio set 54;setenv bootpart ${mmcdev}:1; if test -e ${devtype} ${bootpart} /etc/fstab; then setenv mmcpart 1;fi; echo Checking for: /uEnv.txt
...;if test -e ${devtype} ${bootpart} /uEnv.txt; then if run loadbootenv; then gpio set 55;echo Loaded environment from /uEnv.txt;run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n
${uenvcmd}; then gpio set 56; echo Running uenvcmd ...;run uenvcmd;fi;echo Checking if client_ip is set ...;if test -n ${client_ip}; then if test -n ${dtb}; then setenv fdtfile ${dtb};echo using ${fd
tfile} ...;fi;gpio set 56; if test -n ${uname_r}; then echo Running nfsboot_uname_r ...;run nfsboot_uname_r;fi;echo Running nfsboot ...;run nfsboot;fi;fi; echo Checking for: /${script} ...;if test -e
${devtype} ${bootpart} /${script}; then gpio set 55;setenv scriptfile ${script};run loadbootscript;echo Loaded script from ${scriptfile};gpio set 56; run bootscript;fi; echo Checking for: /boot/${sc
ript} ...;if test -e ${devtype} ${bootpart} /boot/${script}; then gpio set 55;setenv scriptfile /boot/${script};run loadbootscript;echo Loaded script from ${scriptfile};gpio set 56; run bootscript;fi
; echo Checking for: /boot/uEnv.txt ...;for i in 1 2 3 4 5 6 7 ; do setenv mmcpart ${i};setenv bootpart ${mmcdev}:${mmcpart};if test -e ${devtype} ${bootpart} /boot/uEnv.txt; then gpio set 55;load ${
devtype} ${bootpart} ${loadaddr} /boot/uEnv.txt;env import -t ${loadaddr} ${filesize};echo Loaded environment from /boot/uEnv.txt;if test -n ${dtb}; then echo debug: [dtb=${dtb}] ... ;setenv fdtfile
${dtb};echo Using: dtb=${fdtfile} ...;fi;echo Checking if uname_r is set in /boot/uEnv.txt...;if test -n ${uname_r}; then gpio set 56; setenv oldroot /dev/mmcblk${mmcdev}p${mmcpart};echo Running unam
e_boot ...;run uname_boot;fi;fi;done;fi;
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.
efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_fdt=try
boot_fit=0
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=mmc0 legacy_mmc0 mmc1 legacy_mmc1 pxe dhcp
bootcmd=if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fd
tfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_ad
dr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${
efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
bootcmd_legacy_mmc0=gpio clear 56; gpio clear 55; gpio clear 54; gpio set 53; setenv devtype mmc; setenv mmcdev 0; setenv bootpart 0:1 ; run boot
bootcmd_legacy_mmc1=gpio clear 56; gpio clear 55; gpio clear 54; gpio set 53; setenv devtype mmc; setenv mmcdev 1; setenv bootpart 1:1 ; run boot
bootcmd_mmc0=devnum=0; run mmc_boot
bootcmd_mmc1=devnum=1; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcount=1
bootdelay=2
bootdir=/boot
bootenv=uEnv.txt
bootenvfile=uEnv.txt
bootfile=vmlinuz-4.19.31-ti-r18
bootm_size=0x10000000
bootpart=0:0
bootscript=echo Running bootscript from mmc${bootpart} ...; source ${loadaddr}
capeloadoverlay=if test -e ${devtype} ${bootpart} ${uboot_overlay}; then run loadoverlay;setenv cape_uboot bone_capemgr.uboot_capemgr_enabled=1; else echo uboot_overlays: unable to find [${devtype} $
{bootpart} ${uboot_overlay}]...;fi;
console=ttyO0,115200n8
cpu=armv7
device=eth0
dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;s
pl-os-image.raw raw 0x1700 0x6900;spl-os-args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x1000;u-env.raw raw 0x1300 0x200;spl-os-args.raw raw 0x1500 0x200;spl-os-image.raw raw 0x1
700 0x6900;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
eeprom_bbb_header=i2c dev 0; i2c mw 0x50 0x00.2 aa; i2c mw 0x50 0x01.2 55; i2c mw 0x50 0x02.2 33; i2c mw 0x50 0x03.2 ee; i2c mw 0x50 0x04.2 41; i2c mw 0x50 0x05.2 33; i2c mw 0x50 0x06.2 33; i2c mw 0x
50 0x07.2 35; i2c mw 0x50 0x08.2 42; i2c mw 0x50 0x09.2 4e; i2c mw 0x50 0x0a.2 4c; i2c mw 0x50 0x0b.2 54;
eeprom_bbbl_footer= i2c mw 0x50 0x0c.2 42; i2c mw 0x50 0x0d.2 4c; i2c mw 0x50 0x0e.2 41; i2c mw 0x50 0x0f.2 32;
eeprom_bbbw_footer= i2c mw 0x50 0x0c.2 42; i2c mw 0x50 0x0d.2 57; i2c mw 0x50 0x0e.2 41; i2c mw 0x50 0x0f.2 35;
eeprom_beaglelogic= i2c mw 0x50 0x00.2 aa; i2c mw 0x50 0x01.2 55; i2c mw 0x50 0x02.2 33; i2c mw 0x50 0x03.2 ee; i2c mw 0x50 0x04.2 41; i2c mw 0x50 0x05.2 33; i2c mw 0x50 0x06.2 33; i2c mw 0x50 0x07.2
35; i2c mw 0x50 0x08.2 42; i2c mw 0x50 0x09.2 4c; i2c mw 0x50 0x0a.2 47; i2c mw 0x50 0x0b.2 43; i2c mw 0x50 0x0c.2 30; i2c mw 0x50 0x0d.2 30; i2c mw 0x50 0x0e.2 30; i2c mw 0x50 0x0f.2 41;
eeprom_blank=i2c dev 0; i2c mw 0x50 0x00.2 ff; i2c mw 0x50 0x01.2 ff; i2c mw 0x50 0x02.2 ff; i2c mw 0x50 0x03.2 ff; i2c mw 0x50 0x04.2 ff; i2c mw 0x50 0x05.2 ff; i2c mw 0x50 0x06.2 ff; i2c mw 0x50 0x
07.2 ff; i2c mw 0x50 0x08.2 ff; i2c mw 0x50 0x09.2 ff; i2c mw 0x50 0x0a.2 ff; i2c mw 0x50 0x0b.2 ff; i2c mw 0x50 0x0c.2 ff; i2c mw 0x50 0x0d.2 ff; i2c mw 0x50 0x0e.2 ff; i2c mw 0x50 0x0f.2 ff; i2c mw
0x50 0x10.2 ff; i2c mw 0x50 0x11.2 ff; i2c mw 0x50 0x12.2 ff; i2c mw 0x50 0x13.2 ff; i2c mw 0x50 0x14.2 ff; i2c mw 0x50 0x15.2 ff; i2c mw 0x50 0x16.2 ff; i2c mw 0x50 0x17.2 ff; i2c mw 0x50 0x18.2 ff
; i2c mw 0x50 0x19.2 ff; i2c mw 0x50 0x1a.2 ff; i2c mw 0x50 0x1b.2 ff; i2c mw 0x50 0x1c.2 ff; i2c mw 0x50 0x1d.2 ff; i2c mw 0x50 0x1e.2 ff; i2c mw 0x50 0x1f.2 ff;
eeprom_dump=i2c dev 0; i2c md 0x50 0x00.2 20;
eeprom_pocketbeagle= i2c mw 0x50 0x00.2 aa; i2c mw 0x50 0x01.2 55; i2c mw 0x50 0x02.2 33; i2c mw 0x50 0x03.2 ee; i2c mw 0x50 0x04.2 41; i2c mw 0x50 0x05.2 33; i2c mw 0x50 0x06.2 33; i2c mw 0x50 0x07.
2 35; i2c mw 0x50 0x08.2 50; i2c mw 0x50 0x09.2 42; i2c mw 0x50 0x0a.2 47; i2c mw 0x50 0x0b.2 4c; i2c mw 0x50 0x0c.2 30; i2c mw 0x50 0x0d.2 30; i2c mw 0x50 0x0e.2 41; i2c mw 0x50 0x0f.2 32;
eeprom_program=if test $board_eeprom_header = bbb_blank; then run eeprom_dump; run eeprom_blank; run eeprom_bbb_header; run eeprom_dump; reset; fi; if test $board_eeprom_header = bbbl_blank; then run
eeprom_dump; run eeprom_blank; run eeprom_bbb_header; run eeprom_bbbl_footer; run eeprom_dump; reset; fi; if test $board_eeprom_header = bbbw_blank; then run eeprom_dump; run eeprom_blank; run eepro
m_bbb_header; run eeprom_bbbw_footer; run eeprom_dump; reset; fi; if test $board_eeprom_header = pocketbeagle_blank; then run eeprom_dump; run eeprom_blank; run eeprom_pocketbeagle; run eeprom_dump;
reset; fi; if test $board_eeprom_header = beaglelogic_blank; then run eeprom_dump; run eeprom_blank; run eeprom_beaglelogic; run eeprom_dump; reset; fi;
efi_dtb_prefixes=/ /dtb/ /dtb/current/
envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run i
mportbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
eth1addr=98:5d:ad:34:62:66
ethact=usb_ether
ethaddr=98:5d:ad:34:62:64
failumsboot=echo; echo FAILSAFE: U-Boot UMS (USB Mass Storage) enabled, media now available over the usb slave port ...; ums 0 ${devtype} 1;
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtfile=undefined
findfdt=echo board_name=[$board_name] ...; if test $board_name = A335BLGC; then setenv fdtfile am335x-beaglelogic.dtb; fi; if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if
test $board_name = A335BNLT; then echo board_rev=[$board_rev] ...; if test $board_rev = GH01; then setenv fdtfile am335x-boneblack.dtb; elif test $board_rev = BBG1; then setenv fdtfile am335x-bonegre
en.dtb; elif test $board_rev = BP00; then setenv fdtfile am335x-pocketbone.dtb; elif test $board_rev = GW1A; then setenv fdtfile am335x-bonegreen-wireless.dtb; elif test $board_rev = AIA0; then seten
v fdtfile am335x-abbbi.dtb; elif test $board_rev = EIA0; then setenv fdtfile am335x-boneblack.dtb; elif test $board_rev = ME06; then setenv fdtfile am335x-bonegreen.dtb; elif test $board_rev = M10A;
then setenv fdtfile am335x-vsc8531bbb.dtb; elif test $board_rev = OS00; then setenv fdtfile am335x-osd3358-sm-red.dtb; else setenv fdtfile am335x-boneblack.dtb; fi; fi; if test $board_name = A335PBGL
; then setenv fdtfile am335x-pocketbeagle.dtb; fi; if test $board_name = BBBW; then setenv fdtfile am335x-boneblack-wireless.dtb; fi; if test $board_name = BBG1; then setenv fdtfile am335x-bonegreen.
dtb; fi; if test $board_name = BBGW; then setenv fdtfile am335x-bonegreen-wireless.dtb; fi; if test $board_name = BBBL; then setenv fdtfile am335x-boneblue.dtb; fi; if test $board_name = BBEN; then s
etenv fdtfile am335x-sancloud-bbe.dtb; fi; if test $board_name = OS00; then setenv fdtfile am335x-osd3358-sm-red.dtb; fi; if test $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if te
st $board_name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi; if test $board_name = A335_ICE; then setenv fdtfile am335x-icev2.dtb; fi; if test $fdtfile = undefined; then setenv board_name A33
5BNLT; setenv board_rev EMMC; setenv fdtfile am335x-bonegreen.dtb; fi;
finduuid=part uuid ${devtype} ${bootpart} uuid
fit_bootfile=fitImage
fit_loadaddr=0x90000000
gw_ip=192.168.1.1
if_netconsole=ping $serverip
importbootenv=echo Importing environment from ${devtype} ...; env import -t ${loadaddr} ${filesize}
init_console=if test $board_name = A335_ICE; then setenv console ttyO3,115200n8;elif test $board_name = A335BLGC; then setenv console ttyO4,115200n8;else setenv console ttyO0,115200n8;fi;
ipaddr=192.168.1.2
kernel_addr_r=0x82000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
loadaddr=0x82000000
loadbootenv=load ${devtype} ${bootpart} ${loadaddr} ${bootenvfile}
loadbootscript=load ${devtype} ${bootpart} ${loadaddr} ${scriptfile};
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadoverlay=echo uboot_overlays: loading ${uboot_overlay} ...; load ${devtype} ${bootpart} ${rdaddr} ${uboot_overlay}; fdt addr ${fdtaddr}; fdt resize ${fdt_buffer}; fdt apply ${rdaddr}; fdt resize $
{fdt_buffer};
loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}; setenv rdsize ${filesize}
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
mmcboot=mmc dev ${mmcdev}; setenv devnum ${mmcdev}; setenv devtype mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then if test ${boot_fit} -eq 1; then run loadfit; e
lse run mmcloados;fi;fi;fi;
mmcdev=0
mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then if test -n ${uname_r}; then bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; else bootz ${loada
ddr} - ${fdtaddr}; fi; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcrootfstype=ext4 rootwait
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimage; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}
netloadfdt=tftp ${fdtaddr} ${fdtfile}
netloadimage=tftp ${loadaddr} ${bootfile}
netmask=255.255.255.0
nfs_options=,vers=3
nfsargs=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} ${cape_uboot} root=/dev/nfs rw rootfstype=${nfsrootfstype} nfsroot=${nfsroot} ip=${ip} ${cmdline}
nfsboot=echo Booting from ${server_ip} ...; setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}:${device}:${autoconf}; setenv au
toload no; setenv serverip ${server_ip}; setenv ipaddr ${client_ip}; tftp ${loadaddr} ${tftp_dir}${bootfile}; tftp ${fdtaddr} ${tftp_dir}dtbs/${fdtfile}; run nfsargs; bootz ${loadaddr} - ${fdtaddr}
nfsboot_uname_r=echo Booting from ${server_ip} ...; setenv nfsroot ${server_ip}:${root_dir}${nfs_options}; setenv ip ${client_ip}:${server_ip}:${gw_ip}:${netmask}:${hostname}:${device}:${autoconf}; s
etenv autoload no; setenv serverip ${server_ip}; setenv ipaddr ${client_ip}; tftp ${loadaddr} ${tftp_dir}vmlinuz-${uname_r}; tftp ${fdtaddr} ${tftp_dir}dtbs/${uname_r}/${fdtfile}; run nfsargs; bootz
${loadaddr} - ${fdtaddr}
nfsopts=nolock
nfsrootfstype=ext4 rootwait fixrtc
partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
pb_eeprom_hdr=mw 82001000 ee3355aa; mw 82001004 35333341; mw 82001008 4c474250
preboot=run if_netconsole start_netconsole
pxefile_addr_r=0x80100000
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
ramdisk_addr_r=0x88080000
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rdaddr=0x88080000
root_dir=/home/userid/targetNFS
rootpath=/export/rootfs
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_boot
part} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${
devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable me
dia binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continu
ing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo
SCRIPT FAILED: continuing...; fi; done
script=boot.scr
scriptaddr=0x80000000
scriptfile=${script}
serial#=1748EPB00050
server_ip=192.168.1.100
serverip=192.168.1.1
soc=am33xx
spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}
spibusno=0
spiimgsize=0x362000
spiroot=/dev/mtdblock4 rw
spirootfstype=jffs2
spisrcaddr=0xe0000
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial,nc; setenv stdout serial,nc; setenv stderr serial,nc; version
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=ns16550_serial
stdin=ns16550_serial
stdout=ns16550_serial
uname_boot=setenv bootdir /boot; setenv bootfile vmlinuz-${uname_r}; if test -e ${devtype} ${bootpart} ${bootdir}/${bootfile}; then echo loading ${bootdir}/${bootfile} ...; run loadimage;setenv fdtdi
r /boot/dtbs/${uname_r}; echo debug: [enable_uboot_overlays=${enable_uboot_overlays}] ... ;if test -n ${enable_uboot_overlays}; then echo debug: [enable_uboot_cape_universal=${enable_uboot_cape_unive
rsal}] ... ;if test -n ${enable_uboot_cape_universal}; then echo debug: [uboot_base_dtb_univ=${uboot_base_dtb_univ}] ... ;if test -n ${uboot_base_dtb_univ}; then echo uboot_overlays: [uboot_base_dtb=
${uboot_base_dtb_univ}] ... ;if test -e ${devtype} ${bootpart} ${fdtdir}/${uboot_base_dtb_univ}; then setenv fdtfile ${uboot_base_dtb_univ};echo uboot_overlays: Switching too: dtb=${fdtfile} ...;if t
est -n ${uboot_try_cape_universal}; then env delete -f uboot_try_cape_universal; fi;setenv cape_uboot bone_capemgr.uboot_capemgr_enabled=1; else echo debug: unable to find [${uboot_base_dtb_univ}] us
ing [${uboot_base_dtb}] instead ... ;echo debug: [uboot_base_dtb_univ=${uboot_base_dtb}] ... ;if test -n ${uboot_base_dtb}; then echo uboot_overlays: [uboot_base_dtb=${uboot_base_dtb}] ... ;if test -
e ${devtype} ${bootpart} ${fdtdir}/${uboot_base_dtb}; then setenv fdtfile ${uboot_base_dtb};echo uboot_overlays: Switching too: dtb=${fdtfile} ...;fi;fi;fi;fi;else echo debug: [uboot_base_dtb_univ=${
uboot_base_dtb}] ... ;if test -n ${uboot_base_dtb}; then echo uboot_overlays: [uboot_base_dtb=${uboot_base_dtb}] ... ;if test -e ${devtype} ${bootpart} ${fdtdir}/${uboot_base_dtb}; then setenv fdtfil
e ${uboot_base_dtb};echo uboot_overlays: Switching too: dtb=${fdtfile} ...;fi;fi;fi;fi;if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtfile}; then run loadfdt;else setenv fdtdir /usr/lib/linux-image
-${uname_r}; if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtfile}; then run loadfdt;else setenv fdtdir /lib/firmware/${uname_r}/device-tree; if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtfile};
then run loadfdt;else setenv fdtdir /boot/dtb-${uname_r}; if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtfile}; then run loadfdt;else setenv fdtdir /boot/dtbs; if test -e ${devtype} ${bootpart} ${f
dtdir}/${fdtfile}; then run loadfdt;else setenv fdtdir /boot/dtb; if test -e ${devtype} ${bootpart} ${fdtdir}/${fdtfile}; then run loadfdt;else setenv fdtdir /boot; if test -e ${devtype} ${bootpart}
${fdtdir}/${fdtfile}; then run loadfdt;else if test -e ${devtype} ${bootpart} ${fdtfile}; then run loadfdt;else echo; echo unable to find [dtb=${fdtfile}] did you name it correctly? ...; run failumsb
oot;fi;fi;fi;fi;fi;fi;fi;fi; if test -n ${enable_uboot_overlays}; then setenv fdt_buffer 0x60000;if test -n ${uboot_fdt_buffer}; then setenv fdt_buffer ${uboot_fdt_buffer};fi;echo uboot_overlays: [fd
t_buffer=${fdt_buffer}] ... ;if test -n ${uboot_silicon}; then setenv uboot_overlay ${uboot_silicon}; run virtualloadoverlay;fi;if test -n ${uboot_model}; then setenv uboot_overlay ${uboot_model}; ru
n virtualloadoverlay;fi;if test -n ${uboot_overlay_addr0}; then if test -n ${disable_uboot_overlay_addr0}; then echo uboot_overlays: uboot loading of [${uboot_overlay_addr0}] disabled by /boot/uEnv.t
xt [disable_uboot_overlay_addr0=1]...;else setenv uboot_overlay ${uboot_overlay_addr0}; run capeloadoverlay;fi;fi;if test -n ${uboot_overlay_addr1}; then if test -n ${disable_uboot_overlay_addr1}; th
en echo uboot_overlays: uboot loading of [${uboot_overlay_addr1}] disabled by /boot/uEnv.txt [disable_uboot_overlay_addr1=1]...;else setenv uboot_overlay ${uboot_overlay_addr1}; run capeloadoverlay;f
i;fi;if test -n ${uboot_overlay_addr2}; then if test -n ${disable_uboot_overlay_addr2}; then echo uboot_overlays: uboot loading of [${uboot_overlay_addr2}] disabled by /boot/uEnv.txt [disable_uboot_o
verlay_addr2=1]...;else setenv uboot_overlay ${uboot_overlay_addr2}; run capeloadoverlay;fi;fi;if test -n ${uboot_overlay_addr3}; then if test -n ${disable_uboot_overlay_addr3}; then echo uboot_overl
ays: uboot loading of [${uboot_overlay_addr3}] disabled by /boot/uEnv.txt [disable_uboot_overlay_addr3=1]...;else setenv uboot_overlay ${uboot_overlay_addr3}; run capeloadoverlay;fi;fi;if test -n ${u
boot_overlay_addr4}; then setenv uboot_overlay ${uboot_overlay_addr4}; run capeloadoverlay;fi;if test -n ${uboot_overlay_addr5}; then setenv uboot_overlay ${uboot_overlay_addr5}; run capeloadoverlay;
fi;if test -n ${uboot_overlay_addr6}; then setenv uboot_overlay ${uboot_overlay_addr6}; run capeloadoverlay;fi;if test -n ${uboot_overlay_addr7}; then setenv uboot_overlay ${uboot_overlay_addr7}; run
capeloadoverlay;fi;if test -n ${uboot_emmc}; then if test -n ${disable_uboot_overlay_emmc}; then echo uboot_overlays: uboot loading of [${uboot_emmc}] disabled by /boot/uEnv.txt [disable_uboot_overl
ay_emmc=1]...;else setenv uboot_overlay ${uboot_emmc}; run virtualloadoverlay;fi;fi;if test -n ${uboot_video}; then if test -n ${disable_uboot_overlay_video}; then echo uboot_overlays: uboot loading
of [${uboot_video}] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...;else if test -n ${disable_uboot_overlay_audio}; then echo uboot_overlays: uboot loading of [${uboot_video}] disabled
by /boot/uEnv.txt [disable_uboot_overlay_audio=1]...;setenv uboot_overlay ${uboot_video_naudio}; run virtualloadoverlay;else setenv uboot_overlay ${uboot_video}; run virtualloadoverlay;fi;fi;fi;if te
st -n ${uboot_wireless}; then if test -n ${disable_uboot_overlay_wireless}; then echo uboot_overlays: uboot loading of [${uboot_wireless}] disabled by /boot/uEnv.txt [disable_uboot_overlay_wireless=1
]...;else setenv uboot_overlay ${uboot_wireless}; run virtualloadoverlay;fi;fi;if test -n ${uboot_adc}; then if test -n ${disable_uboot_overlay_adc}; then echo uboot_overlays: uboot loading of [${ubo
ot_adc}] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...;else setenv uboot_overlay ${uboot_adc}; run virtualloadoverlay;fi;fi;if test -n ${uboot_overlay_pru}; then setenv uboot_overlay ${
uboot_overlay_pru}; run virtualloadoverlay;fi;if test -n ${dtb_overlay}; then setenv uboot_overlay ${dtb_overlay}; echo uboot_overlays: [dtb_overlay=${uboot_overlay}] ... ;run capeloadoverlay;fi;if t
est -n ${uboot_detected_capes}; then echo uboot_overlays: [uboot_detected_capes=${uboot_detected_capes_addr0}${uboot_detected_capes_addr1}${uboot_detected_capes_addr2}${uboot_detected_capes_addr3}] .
.. ;setenv uboot_detected_capes uboot_detected_capes=${uboot_detected_capes_addr0}${uboot_detected_capes_addr1}${uboot_detected_capes_addr2}${uboot_detected_capes_addr3}; fi;if test -n ${uboot_try_ca
pe_universal}; then if test -n ${enable_uboot_cape_universal}; then if test -n ${cape_uboot}; then echo uboot_overlays: cape universal disabled, external cape enabled or detected...;else if test -n $
{uboot_cape_universal_bbb}; then if test -n ${disable_uboot_overlay_emmc}; then if test -n ${disable_uboot_overlay_video}; then setenv uboot_overlay /lib/firmware/univ-bbb-xxx-00A0.dtbo; else if test
-n ${disable_uboot_overlay_audio}; then setenv uboot_overlay /lib/firmware/univ-bbb-xVx-00A0.dtbo; else setenv uboot_overlay /lib/firmware/univ-bbb-xVA-00A0.dtbo; fi;fi;else if test -n ${disable_ubo
ot_overlay_video}; then setenv uboot_overlay /lib/firmware/univ-bbb-Exx-00A0.dtbo; else if test -n ${disable_uboot_overlay_audio}; then setenv uboot_overlay /lib/firmware/univ-bbb-EVx-00A0.dtbo; else
setenv uboot_overlay /lib/firmware/univ-bbb-EVA-00A0.dtbo; fi;fi;fi;run capeloadoverlay;fi;if test -n ${uboot_cape_universal_bbg}; then if test -n ${disable_uboot_overlay_emmc}; then setenv uboot_ov
erlay /lib/firmware/univ-bbb-xxx-00A0.dtbo; else setenv uboot_overlay /lib/firmware/univ-bbb-Exx-00A0.dtbo; fi;run capeloadoverlay;fi;if test -n ${uboot_cape_universal_bbgw}; then if test -n ${disabl
e_uboot_overlay_emmc}; then if test -n ${disable_uboot_overlay_wireless}; then setenv uboot_overlay /lib/firmware/univ-bbgw-xx-00A0.dtbo; else setenv uboot_overlay /lib/firmware/univ-bbgw-xW-00A0.dtb
o; fi;else if test -n ${disable_uboot_overlay_wireless}; then setenv uboot_overlay /lib/firmware/univ-bbgw-Ex-00A0.dtbo; else setenv uboot_overlay /lib/firmware/univ-bbgw-EW-00A0.dtbo; fi;fi;run cape
loadoverlay;fi;fi;else echo uboot_overlays: add [enable_uboot_cape_universal=1] to /boot/uEnv.txt to enable...;fi;fi;else echo uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enabl
e...;fi;setenv rdfile initrd.img-${uname_r}; if test -e ${devtype} ${bootpart} ${bootdir}/${rdfile}; then echo loading ${bootdir}/${rdfile} ...; run loadrd;if test -n ${netinstall_enable}; then run a
rgs_netinstall; run message;echo debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}] ... ;bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; fi;if test -n ${uenv_r
oot}; then run args_uenv_root;echo debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}] ... ;bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; fi;if test -n ${uuid
}; then run args_mmc_uuid;echo debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}] ... ;bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; fi;run args_mmc_old;echo
debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}] ... ;bootz ${loadaddr} ${rdaddr}:${rdsize} ${fdtaddr}; else if test -n ${uenv_root}; then run args_uenv_root;
echo debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} - ${fdtaddr}] ... ;bootz ${loadaddr} - ${fdtaddr}; fi;run args_mmc_old;echo debug: [${bootargs}] ... ;echo debug: [bootz ${loadaddr} - ${
fdtaddr}] ... ;bootz ${loadaddr} - ${fdtaddr}; fi;fi;
update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
usbnet_devaddr=98:5d:ad:34:62:64
vendor=ti
ver=U-Boot 2019.04-dirty (May 04 2019 - 00:07:17 -0700)
virtualloadoverlay=if test -e ${devtype} ${bootpart} ${uboot_overlay}; then run loadoverlay;else echo uboot_overlays: unable to find [${devtype} ${bootpart} ${uboot_overlay}]...;fi;
Environment size: 27858/131068 bytes

Related

Web application could not be started cpanel

I'm installing a rails app on cpanel hosting. I installed Ruby on Rails from Feature Manager in WHM.
Also enabled ruby24-mod_passenger from Easy Apache 4 (in WHM)
Then i added App in Application Manager (in Cpanel)
when i visit from url i saw these error.
I can't find how to solve this.
Error:
Web application could not be started
Error ID:
7e818f32
Details:
cannot load such file -- bundler/setup (LoadError)
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/opt/cpanel/ea-ruby24/root/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
System information:
Application root
/home/referr12/landing1
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
development
Ruby interpreter command
/opt/cpanel/ea-ruby24/root/usr/libexec/passenger-ruby24
User and groups
uid=1000(referr12) gid=1002(referr12) groups=1002(referr12)
Environment variables
MANPATH = /opt/cpanel/ea-ruby24/root/usr/share/man:
HOSTNAME = vps36248.inmotionhosting.com
SHELL = /bin/bash
UNIQUE_ID = Wm7CSit77Nsu4dwPXX6OrAAAAEA
HISTSIZE = 40000
PERL5LIB = /home/referr12/perl5/lib/perl5:
PYTHONUNBUFFERED = 1
RACK_BASE_URI = /landing
PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXwf1RYv
PERL_MB_OPT = --install_base /home/referr12/perl5
X_SCLS = ea-ruby24
USER = referr12
LD_LIBRARY_PATH = /opt/cpanel/ea-ruby24/root/usr/lib64
LS_COLORS =
RAILS_RELATIVE_URL_ROOT = /landing
IN_PASSENGER = 1
RACK_ENV = development
PASSENGER_USE_FEEDBACK_FD = true
PATH = /opt/cpanel/ea-ruby24/root/usr/bin:/opt/cpanel/ea-ruby24/root/usr/sbin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/home/referr12/perl5/bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin:/opt/cpanel/composer/bin:/usr/local/bin:/usr/X11R6/bin:/home/referr12/.local/bin:/home/referr12/bin
MAIL = /var/spool/mail/referr12
WSGI_ENV = development
PWD = /home/referr12/landing1
INPUTRC = /etc/inputrc
JAVA_HOME = /usr/local/jdk
EDITOR = pico
LANG = en_US.UTF-8
NODE_PATH = /opt/cpanel/ea-ruby24/root/usr/share/passenger/node
TZ = America/Los_Angeles
NODE_ENV = development
SHLVL = 3
HOME = /home/referr12
RAILS_ENV = development
LS_OPTIONS = --color=tty -F -a -b -T 0
PERL_LOCAL_LIB_ROOT = :/home/referr12/perl5
SERVER_SOFTWARE = Apache/2.4.29 (cPanel) OpenSSL/1.0.2n mod_bwlimited/1.4 Phusion_Passenger/5.1.8
LOGNAME = referr12
VISUAL = pico
XDG_DATA_DIRS = /opt/cpanel/ea-ruby24/root/usr/share:/usr/local/share:/usr/share
CLASSPATH = .:/usr/local/jdk/lib/classes.zip
PKG_CONFIG_PATH = /opt/cpanel/ea-ruby24/root/usr/lib64/pkgconfig
LESSOPEN = ||/usr/bin/lesspipe.sh %s
PASSENGER_APP_ENV = development
RESTARTSRV = 1
HISTTIMEFORMAT = (%m/%d/%y) %T
PERL_MM_OPT = INSTALL_BASE=/home/referr12/perl5
PASSENGER_BASE_URI = /landing
_ = /opt/cpanel/ea-ruby24/root/usr/bin/ruby
Ulimits
Unknown
System metrics
------------- General -------------
Kernel version : 3.10.0-042stab127.2
Uptime : 1d 13h 33m 29s
Load averages : 0.19%, 0.10%, 0.02%
Fork rate : unknown
General Ruby interpreter information
RUBY_VERSION = 2.4.2
RUBY_PLATFORM = x86_64-linux
RUBY_ENGINE = ruby
RubyGems version = 2.6.13
RubyGems paths = ["/home/referr12/.gem/ruby", "/opt/cpanel/ea-ruby24/root/usr/share/gems", "/opt/cpanel/ea-ruby24/root/usr/local/share/gems"]
Ruby configuration (RbConfig::CONFIG)
DESTDIR =
MAJOR = 2
MINOR = 4
TEENY = 2
PATCHLEVEL = 198
INSTALL = /bin/install -c
EXEEXT =
prefix = /opt/cpanel/ea-ruby24/root/usr
ruby_install_name = ruby
RUBY_INSTALL_NAME = ruby
RUBY_SO_NAME = ruby
exec = exec
ruby_pc = ruby.pc
PACKAGE = ruby
BUILTIN_TRANSSRCS = enc/trans/newline.c
USE_RUBYGEMS = YES
MANTYPE = doc
NROFF = /usr/bin/nroff
OPTIONAL_PRELUDES = ./abrt_prelude.rb
vendorarchhdrdir = /opt/cpanel/ea-ruby24/root/usr/include/vendor_ruby/x86_64-linux
sitearchhdrdir = /opt/cpanel/ea-ruby24/root/usr/include/site_ruby/x86_64-linux
rubyarchhdrdir = /opt/cpanel/ea-ruby24/root/usr/include
vendorhdrdir = /opt/cpanel/ea-ruby24/root/usr/include/vendor_ruby
sitehdrdir = /opt/cpanel/ea-ruby24/root/usr/include/site_ruby
rubyhdrdir = /opt/cpanel/ea-ruby24/root/usr/include
RUBY_SEARCH_PATH =
UNIVERSAL_INTS =
UNIVERSAL_ARCHNAMES =
configure_args = '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-ruby24/root/usr' '--exec-prefix=/opt/cpanel/ea-ruby24/root/usr' '--bindir=/opt/cpanel/ea-ruby24/root/usr/bin' '--sbindir=/opt/cpanel/ea-ruby24/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-ruby24/root/etc' '--datadir=/opt/cpanel/ea-ruby24/root/usr/share' '--includedir=/opt/cpanel/ea-ruby24/root/usr/include' '--libdir=/opt/cpanel/ea-ruby24/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-ruby24/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-ruby24/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-ruby24/root/usr/com' '--mandir=/opt/cpanel/ea-ruby24/root/usr/share/man' '--infodir=/opt/cpanel/ea-ruby24/root/usr/share/info' '--with-rubylibprefix=/opt/cpanel/ea-ruby24/root/usr/share/ruby' '--with-archlibdir=/opt/cpanel/ea-ruby24/root/usr/lib64' '--with-rubyarchprefix=/opt/cpanel/ea-ruby24/root/usr/lib64/ruby' '--with-sitedir=/opt/cpanel/ea-ruby24/root/usr/local/share/ruby/site_ruby' '--with-sitearchdir=/opt/cpanel/ea-ruby24/root/usr/local/lib64/ruby/site_ruby' '--with-vendordir=/opt/cpanel/ea-ruby24/root/usr/share/ruby/vendor_ruby' '--with-vendorarchdir=/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/vendor_ruby' '--with-rubyhdrdir=/opt/cpanel/ea-ruby24/root/usr/include' '--with-rubyarchhdrdir=/opt/cpanel/ea-ruby24/root/usr/include' '--with-sitearchhdrdir=$(sitehdrdir)/$(arch)' '--with-vendorarchhdrdir=$(vendorhdrdir)/$(arch)' '--with-rubygemsdir=/opt/cpanel/ea-ruby24/root/usr/share/rubygems' '--with-ruby-pc=ruby.pc' '--with-compress-debug-sections=no' '--disable-rpath' '--enable-shared' '--with-ruby-version=' '--enable-multiarch' '--with-prelude=./abrt_prelude.rb' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
CONFIGURE = configure
rubygemsdir = /opt/cpanel/ea-ruby24/root/usr/share/rubygems
vendorarchdir = /opt/cpanel/ea-ruby24/root/usr/lib64/ruby/vendor_ruby
vendorlibdir = /opt/cpanel/ea-ruby24/root/usr/share/ruby/vendor_ruby
vendordir = /opt/cpanel/ea-ruby24/root/usr/share/ruby/vendor_ruby
sitearchdir = /opt/cpanel/ea-ruby24/root/usr/local/lib64/ruby/site_ruby
sitelibdir = /opt/cpanel/ea-ruby24/root/usr/local/share/ruby/site_ruby
sitedir = /opt/cpanel/ea-ruby24/root/usr/local/share/ruby/site_ruby
rubyarchdir = /opt/cpanel/ea-ruby24/root/usr/lib64/ruby
rubylibdir = /opt/cpanel/ea-ruby24/root/usr/share/ruby
ruby_version_dir_name =
ruby_version = 2.4.0
sitearch = x86_64-linux
arch = x86_64-linux
sitearchincludedir = /opt/cpanel/ea-ruby24/root/usr/include/x86_64-linux
archincludedir = /opt/cpanel/ea-ruby24/root/usr/include/x86_64-linux
sitearchlibdir = /opt/cpanel/ea-ruby24/root/usr/lib64/x86_64-linux
archlibdir = /opt/cpanel/ea-ruby24/root/usr/lib64
libdirname = archlibdir
RUBY_EXEC_PREFIX = /opt/cpanel/ea-ruby24/root/usr
RUBY_LIB_VERSION = 2.4.0
RUBY_LIB_VERSION_STYLE = 3 /* full */
RI_BASE_NAME = ri
ridir = /opt/cpanel/ea-ruby24/root/usr/share/ri
rubysitearchprefix = /opt/cpanel/ea-ruby24/root/usr/lib64/x86_64-linux/ruby
rubyarchprefix = /opt/cpanel/ea-ruby24/root/usr/lib64/ruby
MAKEFILES = Makefile GNUmakefile
PLATFORM_DIR =
THREAD_MODEL = pthread
SYMBOL_PREFIX =
EXPORT_PREFIX =
COMMON_HEADERS =
COMMON_MACROS =
COMMON_LIBS =
MAINLIBS =
ENABLE_SHARED = yes
DLDLIBS = -lc
SOLIBS = -lpthread -ldl -lcrypt -lm
LIBRUBYARG_SHARED = -lruby
LIBRUBYARG_STATIC = -lruby-static
LIBRUBYARG = -lruby
LIBRUBY = libruby.so.2.4.2
LIBRUBY_ALIASES = libruby.so.2.4 libruby.so
LIBRUBY_SO = libruby.so.2.4.2
LIBRUBY_A = libruby-static.a
RUBYW_INSTALL_NAME =
rubyw_install_name =
EXTDLDFLAGS =
EXTLDFLAGS =
strict_warnflags = -std=gnu99
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format
debugflags = -ggdb3
optflags = -O3 -fno-fast-math
NULLCMD = :
DLNOBJ = dln.o
INSTALL_STATIC_LIBRARY = no
EXECUTABLE_EXTS =
ARCHFILE =
LIBRUBY_RELATIVE = no
EXTOUT = .ext
PREP = miniruby
CROSS_COMPILING = no
TEST_RUNNABLE = yes
rubylibprefix = /opt/cpanel/ea-ruby24/root/usr/share/ruby
setup = Setup
ENCSTATIC =
EXTSTATIC =
STRIP = strip -S -x
TRY_LINK =
PRELOADENV = LD_PRELOAD
LIBPATHENV = LD_LIBRARY_PATH
RPATHFLAG =
LIBPATHFLAG = -L%s
LINK_SO =
ASMEXT = S
LIBEXT = a
DLEXT2 =
DLEXT = so
LDSHAREDXX = g++ -shared
LDSHARED = gcc -shared
CCDLFLAGS = -fPIC
STATIC =
ARCH_FLAG = -m64
DLDFLAGS = -Wl,-z,relro -m64
ALLOCA =
codesign =
POSTLINK = :
WERRORFLAG = -Werror
CHDIR = cd -P
RMALL = rm -fr
RMDIRS = rmdir --ignore-fail-on-non-empty -p
RMDIR = rmdir --ignore-fail-on-non-empty
CP = cp
RM = rm -f
PKG_CONFIG = pkg-config
PYTHON =
DOXYGEN =
DOT =
MAKEDIRS = /bin/mkdir -p
MKDIR_P = /bin/mkdir -p
INSTALL_DATA = /bin/install -c -m 644
INSTALL_SCRIPT = /bin/install -c
INSTALL_PROGRAM = /bin/install -c
SET_MAKE =
LN_S = ln -s
NM = nm
DLLWRAP =
WINDRES =
OBJCOPY = :
OBJDUMP = objdump
ASFLAGS =
AS = as
ARFLAGS = rcD
AR = ar
RANLIB = ranlib
try_header =
CC_VERSION_MESSAGE = gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CC_VERSION = gcc --version
CSRCFLAG =
COUTFLAG = -o
OUTFLAG = -o
CPPOUTFILE = -o conftest.i
GNU_LD = yes
LD = ld
GCC = yes
EGREP = /bin/grep -E
GREP = /bin/grep
CPP = gcc -E
CXXFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic
OBJEXT = o
CPPFLAGS =
LDFLAGS = -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic
CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC
CXX = g++
CC = gcc
NACL_LIB_PATH =
NACL_SDK_VARIANT =
NACL_SDK_ROOT =
NACL_TOOLCHAIN =
target_os = linux
target_vendor = redhat
target_cpu = x86_64
target = x86_64-redhat-linux-gnu
host_os = linux-gnu
host_vendor = redhat
host_cpu = x86_64
host = x86_64-redhat-linux-gnu
RUBY_VERSION_NAME = ruby-
RUBYW_BASE_NAME = rubyw
RUBY_BASE_NAME = ruby
build_os = linux-gnu
build_vendor = redhat
build_cpu = x86_64
build = x86_64-redhat-linux-gnu
RUBY_PROGRAM_VERSION = 2.4.2
cxxflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format
cppflags =
cflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format
target_alias =
host_alias = x86_64-redhat-linux-gnu
build_alias = x86_64-redhat-linux-gnu
LIBS = -lpthread -ldl -lcrypt -lm
ECHO_T =
ECHO_N = -n
ECHO_C =
DEFS =
mandir = /opt/cpanel/ea-ruby24/root/usr/share/man
localedir = /opt/cpanel/ea-ruby24/root/usr/share/locale
libdir = /opt/cpanel/ea-ruby24/root/usr/lib64
psdir = /opt/cpanel/ea-ruby24/root/usr/share/doc/ruby
pdfdir = /opt/cpanel/ea-ruby24/root/usr/share/doc/ruby
dvidir = /opt/cpanel/ea-ruby24/root/usr/share/doc/ruby
htmldir = /opt/cpanel/ea-ruby24/root/usr/share/doc/ruby
infodir = /opt/cpanel/ea-ruby24/root/usr/share/info
docdir = /opt/cpanel/ea-ruby24/root/usr/share/doc/ruby
oldincludedir = /usr/include
includedir = /opt/cpanel/ea-ruby24/root/usr/include
localstatedir = /opt/cpanel/ea-ruby24/root/usr/var
sharedstatedir = /opt/cpanel/ea-ruby24/root/usr/com
sysconfdir = /opt/cpanel/ea-ruby24/root/etc
datadir = /opt/cpanel/ea-ruby24/root/usr/share
datarootdir = /opt/cpanel/ea-ruby24/root/usr/share
libexecdir = /opt/cpanel/ea-ruby24/root/usr/libexec
sbindir = /opt/cpanel/ea-ruby24/root/usr/sbin
bindir = /opt/cpanel/ea-ruby24/root/usr/bin
exec_prefix = /opt/cpanel/ea-ruby24/root/usr
PACKAGE_URL =
PACKAGE_BUGREPORT =
PACKAGE_STRING =
PACKAGE_VERSION =
PACKAGE_TARNAME =
PACKAGE_NAME =
PATH_SEPARATOR = :
SHELL = /bin/sh
UNICODE_VERSION = 9.0.0
archdir = /opt/cpanel/ea-ruby24/root/usr/lib64/ruby
topdir = /opt/cpanel/ea-ruby24/root/usr/lib64/ruby
Activated Ruby gems
did_you_mean => 1.1.0
Ruby load path ($LOAD_PATH)
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib
/opt/cpanel/ea-ruby24/root/usr/local/share/ruby/site_ruby
/opt/cpanel/ea-ruby24/root/usr/local/lib64/ruby/site_ruby
/opt/cpanel/ea-ruby24/root/usr/share/ruby/vendor_ruby
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/vendor_ruby
/opt/cpanel/ea-ruby24/root/usr/share/rubygems
/opt/cpanel/ea-ruby24/root/usr/share/ruby
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby
Ruby loaded libraries ($LOADED_FEATURES)
enumerator.so
thread.rb
rational.so
complex.so
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/enc/encdb.so
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/enc/trans/transdb.so
/opt/cpanel/ea-ruby24/root/usr/share/ruby/unicode_normalize.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/rbconfig.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/compatibility.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/defaults.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/deprecate.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/errors.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/version.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/requirement.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/platform.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/basic_specification.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/stub_specification.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/util/list.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/stringio.so
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/specification.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/exceptions.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/defaults/operating_system.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_gem.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/monitor.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/dependency.rb
/opt/cpanel/ea-ruby24/root/usr/share/rubygems/rubygems/path_support.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/version.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/core_ext/name_error.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/levenshtein.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/jaro_winkler.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checker.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/delegate.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/null_checker.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean/formatter.rb
/opt/cpanel/ea-ruby24/root/usr/share/gems/gems/did_you_mean-1.1.0/lib/did_you_mean.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/constants.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/etc.so
/opt/cpanel/ea-ruby24/root/usr/share/ruby/fileutils.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/tmpdir.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils/tmpio.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/platform_info.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/platform_info/operating_system.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/vendor_ruby/passenger/passenger_native_support.so
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/native_support.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/socket.so
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/io/wait.so
/opt/cpanel/ea-ruby24/root/usr/share/ruby/socket.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/pathname.so
/opt/cpanel/ea-ruby24/root/usr/share/ruby/pathname.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/ruby_core_enhancements.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/ruby_core_io_enhancements.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/base64.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/preloader_shared_helpers.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/public_api.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/debug_logging.rb
/opt/cpanel/ea-ruby24/root/usr/share/ruby/shellwords.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils/shellwords.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb
/opt/cpanel/ea-ruby24/root/usr/lib64/ruby/fcntl.so
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/message_channel.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/message_client.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils/native_support_utils.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils/unseekable_socket.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/request_handler.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/utils/tee_input.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/version.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails/version.rb
/opt/cpanel/ea-ruby24/root/usr/share/passenger/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails.rb

esp8266 RTOS blink example doesn't work

I have a problem with the RTOS firmware on the esp8266 (I have a esp12e), after flashing the firmware, reading from uart, it keeps stuck with those lines:
ets Jan 8 2013,rst cause:2, boot mode:(3,0)
load 0x40100000, len 31584, room 16
tail 0
chksum 0x24
load 0x3ffe8000, len 944, room 8
tail 8
chksum 0x9e
load 0x3ffe83b0, len 1080, room 0
tail 8
chksum 0x60
csum 0x60
Now I will explain my HW setup:
GPIO15 -> Gnd
EN -> Vcc
GPIO0 -> Gnd (when flashing)
GPIO0 -> Vcc (normal mode)
For the toolchain I've followed this tutorial and it works well:
http://microcontrollerkits.blogspot.it/2015/12/esp8266-eclipse-development.html
Then I started doing my RTOS blink example, I post my user_main.c code here:
#include "esp_common.h"
#include "gpio.h"
void task2(void *pvParameters)
{
printf("Hello, welcome to client!\r\n");
while(1)
{
// Delay and turn on
vTaskDelay (300/portTICK_RATE_MS);
GPIO_OUTPUT_SET (5, 1);
// Delay and LED off
vTaskDelay (300/portTICK_RATE_MS);
GPIO_OUTPUT_SET (5, 0);
}
}
/******************************************************************************
* FunctionName : user_rf_cal_sector_set
* Description : SDK just reversed 4 sectors, used for rf init data and paramters.
* We add this function to force users to set rf cal sector, since
* we don't know which sector is free in user's application.
* sector map for last several sectors : ABCCC
* A : rf cal
* B : rf init data
* C : sdk parameters
* Parameters : none
* Returns : rf cal sector
*******************************************************************************/
uint32 user_rf_cal_sector_set(void)
{
flash_size_map size_map = system_get_flash_size_map();
uint32 rf_cal_sec = 0;
switch (size_map) {
case FLASH_SIZE_4M_MAP_256_256:
rf_cal_sec = 128 - 5;
break;
case FLASH_SIZE_8M_MAP_512_512:
rf_cal_sec = 256 - 5;
break;
case FLASH_SIZE_16M_MAP_512_512:
case FLASH_SIZE_16M_MAP_1024_1024:
rf_cal_sec = 512 - 5;
break;
case FLASH_SIZE_32M_MAP_512_512:
case FLASH_SIZE_32M_MAP_1024_1024:
rf_cal_sec = 1024 - 5;
break;
default:
rf_cal_sec = 0;
break;
}
return rf_cal_sec;
}
/******************************************************************************
* FunctionName : user_init
* Description : entry of user application, init user function here
* Parameters : none
* Returns : none
*******************************************************************************/
void user_init(void)
{
uart_init_new();
printf("SDK version:%s\n", system_get_sdk_version());
// Config pin as GPIO5
PIN_FUNC_SELECT (PERIPHS_IO_MUX_GPIO5_U, FUNC_GPIO5);
xTaskCreate(task2, "tsk2", 256, NULL, 2, NULL);
}
I also post the flash command, the first executed one time, the second every time I modify the code:
c:/Espressif/utils/ESP8266/esptool.exe -p COM3 write_flash -ff 40m -fm qio -fs 32m 0x3FC000 c:/Espressif/ESP8266_RTOS_SDK/bin/esp_init_data_default.bin 0x3FE000 c:/Espressif/ESP8266_RTOS_SDK/bin/blank.bin 0x7E000 c:/Espressif/ESP8266_RTOS_SDK/bin/blank.bin
c:/Espressif/utils/ESP8266/esptool.exe -p COM3 -b 256000 write_flash -ff 40m -fm qio -fs 32m 0x00000 firmware/eagle.flash.bin 0x40000 firmware/eagle.irom0text.bin
There is something wrong? I really don't understand why it doesn't work.
When I try the NON-OS example they works very well.
I had the same problem as you. This issue is caused by the incorrect address of the eagle.irom0text.bin .
So I changed the address of the eagle.irom0text.bin from 0x40000 (0x10000) to 0x20000 and it worked well for me.
[RTOS SDK version: 1.4.2(f57d61a)]
The correct flash codes in the common_rtos.mk (ESP-12E)
for flashinit
flashinit:
$(vecho) "Flash init data default and blank data."
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) 0x3fc000 $(SDK_BASE)/bin/esp_init_data_default.bin
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) 0x3fe000 $(SDK_BASE)/bin/blank.bin
for flash:
flash: all
#ifeq ($(app), 0)
$(ESPTOOL) -p $(ESPPORT) -b $(ESPBAUD) write_flash $(flashimageoptions) 0x00000 $(FW_BASE)/eagle.flash.bin 0x20000 $(FW_BASE)/eagle.irom0text.bin
else
ifeq ($(boot), none)
$(ESPTOOL) -p $(ESPPORT) -b $(ESPBAUD) write_flash $(flashimageoptions) 0x00000 $(FW_BASE)/eagle.flash.bin 0x20000 $(FW_BASE)/eagle.irom0text.bin
else
$(ESPTOOL) -p $(ESPPORT) -b $(ESPBAUD) write_flash $(flashimageoptions) $(addr) $(FW_BASE)/upgrade/$(BIN_NAME).bin
endif
endif

undefind reference to gst_element_register Qtcreator

I'm trying to build a program in which I use gstreamer and opencv to manipulate images. This is my main file:
#include "GstSource.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <iostream>
static const int Key_Escape = 27;
int main(int argc, char *argv[])
{
cv::namedWindow("Gstreamer");
cvMoveWindow("Gstreamer",100,100);
GstreamerPlayer player;
if (! player.open("videotestsrc") )
std::cerr << "Unable to open pipeline" << std::endl;
if ( !player.setWidth(640) || !player.setHeight(480) ) {
std::cerr << "Unable to change resolution" << std::endl;
return 1;
}
bool fps_readed = false;
while (true) {
if (!player.grabFrame()) {
std::cerr << "Failed to grab frame" << std::endl;
break;
}
GstreamerImage * frame = player.getImage();
if (!frame) {
std::cerr << "Failed to retrieve frame" << std::endl;
break;
}
if (!fps_readed) {
std::cout << "Video playing at " << player.getFps() << " fps" < std::endl;
fps_readed = true;
}
cv::Mat canvas = cv::Mat(frame->height, frame->width, CV_8UC3, frame->data);
if ( canvas.empty() )
break;
cv::imshow("Gstreamer", canvas);
int key = cv::waitKey(10);
if (key == Key_Escape)
break;
}
}
and this is the .pro file:
QT += core
QT -= gui
TARGET = provaQT
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
INCLUDEPATH += /usr/include/gstreamer-1.0 \
/usr/local/include \
/usr/include/glib-2.0 \
/usr/lib/arm-linux-gnueabihf/glib-2.0/include \
/usr/lib/arm-linux-gnueabihf
LIBS += -L"/usr/lib/arm-linux-gnueabihf" -lglib-2.0 -lgobject-2.0 \
-L"/usr/local/lib" -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_videoio \
-L"/usr/lib/arm-linux-gnueabihf/gstreamer-1.0" -lgnl -lgst1394 -lgstaasink -lgstaccurip -lgstcoreelements \
-L"/home/odroid/Desktop/Gstreamer-Test/bin/linux/gst-plugins" -lgst-overlay
SOURCES += \
../Gstreamer-Test/src/gstinit.cpp \
../Gstreamer-Test/src/gstplugin.cpp \
../Gstreamer-Test/src/gstplugin_impl.cpp \
../Gstreamer-Test/src/GstSource.cpp \
../Gstreamer-Test/src/main.cpp \
../Gstreamer-Test/src/videotestoverlay.cpp
HEADERS += \
../Gstreamer-Test/src/gstplugin.hpp \
../Gstreamer-Test/src/gstplugin_impl.hpp \
../Gstreamer-Test/src/GstSource.hpp \
../Gstreamer-Test/src/videotestoverlay.hpp
and I get 147 error of this type: undefined reference to..... because many function used are declared but not defined. Where are their definition? How I can include their definition?
What about using PKGCONFIG:
in your pro:
CONFIG += pkgconfig
PKGCONFIG += gstreamer-1.0 gstreamer-video-1.0
You can check from shell that you have them:
pkg-config --list-all | grep gst
Checking one package if pointing to correct libraries:
pkg-config --cflags gstreamer-1.0
Should print:
-pthread -I/usr/local/include/gstreamer-1.0 -I/usr/local/lib/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -L/usr/local/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
If you do not have the .pc files they wont be listed.. You need to install the -dev version of the gstreamer packages.
Also there is env variable which can be used to tell pkg config where to look for .pc files:
PKG_CONFIG_PATH=/home/something/gst/1.6/gst-devtools/validate/pkgconfig
Here someone tried to link opencv that way..

BeagleBone Black: Pinmuxing does not change by using Device Tree Overlay

I am trying to change my pinmuxing modes by device tree overlays, but it seems that it has no effect to the specific registers. I tried the following tutorial:
http://www.valvers.com/embedded-linux/beaglebone-black/step04-gpio/
Default situation:
I am using Debian Linux, image date: 2016-01-24
kernel version: 4.1.15-ti-rt-r43
# output filtered for desired pins:
cat /sys/kernel/debug/pinctrl/44e10800.pinmux/Pins
pin 84 (44e10950.0) 00000037 pinctrl-single
pin 85 (44e10954.0) 00000037 pinctrl-single
pin 86 (44e10958.0) 00000037 pinctrl-single
pin 87 (44e1095c.0) 00000037 pinctrl-single
As you can see the all have mode 7, I need mode 0 (SPI0).
And no one else is using the pin (pretty much the same on every pin => GPIO UNCLAIMED):
pin 84 (44e10950.0): ocp:P9_22_pinmux (GPIO UNCLAIMED) function pinmux_P9_22_default_pin group pinmux_P9_22_default_pin
cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universaln
Here is my device tree:
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "SPI_SLAVE_PINMUX";
version = "00A0";
fragment#0 {
target = <&am33xx_pinmux>;
__overlay__ {
spi_slave: pinmux_spi_slave {
pinctrl-single,pins = <
0x150 0x30 // SPI0_CS0 Mode 0, SPI
0x154 0x30 // SPI0_D1 Mode 0, SPI
0x158 0x10 // SPI0_D0 Mode 0, SPI
0x15c 0x10 // SPI0_SCLK Mode 0, SPI
>;
};
};
};
fragment#1 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size.cells = <0>;
compatible = "bone-pinmux-helper";
pinctrl-names = "default";
pinctrl-0 = <&spi_slave>;
status = "okay";
};
};
};
Then I compile my dts file and copy the compiled file to /lib/Firmware.
dtc -O dtb -o SPI_SLAVE_PINMUX-00A0.dtbo -b O -# SPI_SLAVE_PINMUX-00A0.dts
After that I install the driver:
echo SPI_SLAVE_PINMUX > /sys/devices/platform/bone_capemgr/slots
The overlay is loaded:
root#beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-universaln
7: P-O-L- 1 Override Board Name,00A0,Override Manuf,SPI_SLAVE_PINMUX
Now the problem: if I execute the following command:
cat /sys/kernel/debug/pinctrl/44e10800.pinmux/Pins
I can see that nothing has changed.
pin 84 (44e10950.0) 00000037 pinctrl-single
pin 85 (44e10954.0) 00000037 pinctrl-single
pin 86 (44e10958.0) 00000037 pinctrl-single
pin 87 (44e1095c.0) 00000037 pinctrl-single
And I am wondering how this device tree fits to my device driver (char device driver, with access to MCSPI Memory to manipulate registers), but that's a different story... ;)
I would be very grateful, if someone could help me through ...
Many thanks in advance

Rails Phusion Passenger error after updates

I updated to rails 3.2.17 from 3.2.1. When I run bundle update and bundle install, everything passes with no errors or warnings. Then I restart my server, and when I load my site, I get the PASSENGER: WEB APPLICATION COULD NOT BE STARTED page. Below is a copy of everything listed on that page. Any ideas what I might need to change or check to get things running?
It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:
bundle install
If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:
Is this app supposed to be run as the root user?
Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.
-------- The exception is as follows: -------
Could not find rake-10.2.1 in any of the sources (Bundler::GemNotFound)
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/spec_set.rb:92:in `block in materialize'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/spec_set.rb:85:in `map!'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/spec_set.rb:85:in `materialize'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/definition.rb:133:in `specs'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/definition.rb:178:in `specs_for'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/definition.rb:167:in `requested_specs'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/environment.rb:18:in `requested_specs'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/runtime.rb:13:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler.rb:119:in `setup'
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/setup.rb:17:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:100:in `preload_app'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/var/lib/gems/1.9.1/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:28:in `<main>'
Application root
/srv/engdb
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV)
development
Ruby interpreter command
/usr/bin/ruby1.9.1
User and groups
uid=0(root) gid=0(root) groups=0(root)
Environment variables
APACHE_PID_FILE = /var/run/apache2.pid
SHELL = /bin/bash
APACHE_RUN_USER = www-data
PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXX7bmK0b
USER = root
APACHE_LOG_DIR = /var/log/apache2
PATH = /usr/local/bin:/usr/bin:/bin
PWD = /srv/engdb
APACHE_RUN_GROUP = www-data
LANG = C
SHLVL = 0
HOME = /root
LOGNAME = root
APACHE_LOCK_DIR = /var/lock/apache2
APACHE_RUN_DIR = /var/run/apache2
IN_PASSENGER = 1
PYTHONUNBUFFERED = 1
NODE_PATH = /var/lib/gems/1.9.1/gems/passenger-4.0.37/node_lib
RAILS_ENV = development
RACK_ENV = development
WSGI_ENV = development
NODE_ENV = development
PASSENGER_APP_ENV = development
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Apache/2.2.22 (Ubuntu)
DOCUMENT_ROOT = /srv/engdb/public/
SERVER_ADMIN = [no address given]
QUERY_STRING =
SERVER_NAME = engdatabase
REMOTE_PORT = 53900
REMOTE_ADDR = 192.168.201.14
SERVER_PORT = 80
REQUEST_METHOD = GET
SERVER_ADDR = 192.168.201.89
REQUEST_URI = /
GEM_PATH = /var/lib/gems/1.9.1:/root/.gem/ruby/1.9.1
GEM_HOME = /var/lib/gems/1.9.1
Ulimits
Unknown
System memory usage
total used free shared buffers cached
Mem: 2001 1674 327 0 198 704
-/+ buffers/cache: 772 1229
Swap: 2044 7 2037
General Ruby interpreter information
RUBY_VERSION = 1.9.3
RUBY_PLATFORM = x86_64-linux
RUBY_ENGINE = ruby
RubyGems version = 1.8.11
Ruby configuration (RbConfig::CONFIG)
DESTDIR =
MAJOR = 1
MINOR = 9
TEENY = 1
PATCHLEVEL = 0
INSTALL = /usr/bin/install -c
EXEEXT =
prefix = /usr
ruby_install_name = ruby1.9.1
RUBY_INSTALL_NAME = ruby1.9.1
RUBY_SO_NAME = ruby-1.9.1
exec = exec
ruby_pc = ruby-1.9.pc
PACKAGE = ruby
BUILTIN_TRANSSRCS = newline.c
USE_RUBYGEMS = YES
MANTYPE = doc
NROFF = /usr/bin/nroff
vendorhdrdir = /usr/include/ruby-1.9.1/vendor_ruby
sitehdrdir = /usr/include/ruby-1.9.1/site_ruby
rubyhdrdir = /usr/include/ruby-1.9.1
UNIVERSAL_INTS =
UNIVERSAL_ARCHNAMES =
configure_args = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/usr/include' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib/ruby1.9.1' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-pthread' '--enable-shared' '--disable-rpath' '--disable-install-doc' '--with-vendordir=/usr/lib/ruby/vendor_ruby' '--with-sitedir=/usr/local/lib/site_ruby' '--program-suffix=1.9.1' '--with-soname=ruby-1.9.1' '--with-baseruby=/usr/bin/ruby1.8' '--enable-ipv6' '--with-dbm-type=gdbm_compat' '--with-tklib=tk8.4' '--with-tcllib=tcl8.4' '--with-tcl-include=/usr/include/tcl8.4' '--with-bundled-sha1' '--with-bundled-md5' '--with-bundled-rmd160' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-fno-strict-aliasing -g -g -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-fno-strict-aliasing -g'
vendordir = /usr/lib/ruby/vendor_ruby
sitedir = /usr/local/lib/site_ruby
ruby_version = 1.9.1
sitearch = x86_64-linux
arch = x86_64-linux
RI_BASE_NAME = ri
ridir = /usr/share/ri
rubylibprefix = /usr/lib/ruby
MAKEFILES = Makefile
THREAD_MODEL = pthread
SYMBOL_PREFIX =
EXPORT_PREFIX =
COMMON_HEADERS =
COMMON_MACROS =
COMMON_LIBS =
MAINLIBS =
ENABLE_SHARED = yes
DLDLIBS = -lc
SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
LIBRUBYARG_SHARED = -lruby-1.9.1
LIBRUBYARG_STATIC = -lruby-1.9.1-static
LIBRUBYARG = -lruby-1.9.1
LIBRUBY = libruby-1.9.1.so.1.9.1
LIBRUBY_ALIASES = libruby-1.9.1.so.1.9 libruby-1.9.1.so
LIBRUBY_SO = libruby-1.9.1.so.1.9.1
LIBRUBY_A = libruby-1.9.1-static.a
RUBYW_INSTALL_NAME =
rubyw_install_name =
LIBRUBY_DLDFLAGS = -Wl,-soname,libruby-1.9.1.so.1.9
LIBRUBY_LDSHARED = gcc -shared
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
debugflags = -ggdb
optflags = -O3
cxxflags = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
cflags = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration
cppflags =
NULLCMD = :
INSTALLDOC = nodoc
CAPITARGET = nodoc
RDOCTARGET = nodoc
EXECUTABLE_EXTS =
ARCHFILE =
LIBRUBY_RELATIVE = no
EXTOUT = .ext
PREP = miniruby
TEST_RUNNABLE = yes
setup = Setup
EXTSTATIC =
STRIP = strip -S -x
TRY_LINK =
LIBPATHENV = LD_LIBRARY_PATH
RPATHFLAG =
LIBPATHFLAG = -L%s
LINK_SO =
LIBEXT = a
DLEXT2 =
DLEXT = so
LDSHAREDXX = g++ -shared
LDSHARED = gcc -shared
CCDLFLAGS = -fPIC
STATIC =
ARCH_FLAG =
DLDFLAGS =
ALLOCA =
WERRORFLAG = -Werror
CHDIR = cd -P
RMALL = rm -fr
RMDIRS = rmdir --ignore-fail-on-non-empty -p
RMDIR = rmdir --ignore-fail-on-non-empty
CP = cp
RM = rm -f
PKG_CONFIG =
DOXYGEN =
DOT =
MAKEDIRS = /bin/mkdir -p
MKDIR_P = /bin/mkdir -p
INSTALL_DATA = /usr/bin/install -c -m 644
INSTALL_SCRIPT = /usr/bin/install -c
INSTALL_PROGRAM = /usr/bin/install -c
SET_MAKE =
LN_S = ln -s
NM = nm
DLLWRAP =
WINDRES =
OBJCOPY = objcopy
OBJDUMP = objdump
ASFLAGS =
AS = as
AR = ar
RANLIB = ranlib
try_header =
COUTFLAG = -o
OUTFLAG = -o
CPPOUTFILE = -o conftest.i
GNU_LD = yes
GCC = yes
EGREP = /bin/grep -E
GREP = /bin/grep
CPP = gcc -E
CXXFLAGS = -fno-strict-aliasing -g
CXX = g++
OBJEXT = o
CPPFLAGS =
LDFLAGS = -L. -rdynamic -Wl,-export-dynamic
CFLAGS = -fno-strict-aliasing -g -g -O2 -fPIC
CC = gcc
target_os = linux
target_vendor = pc
target_cpu = x86_64
target = x86_64-pc-linux-gnu
host_os = linux-gnu
host_vendor = pc
host_cpu = x86_64
host = x86_64-pc-linux-gnu
RUBYW_BASE_NAME = rubyw
RUBY_BASE_NAME = ruby
build_os = linux-gnu
build_vendor = pc
build_cpu = x86_64
build = x86_64-pc-linux-gnu
RUBY_RELEASE_DATE = 2011-10-30
RUBY_PROGRAM_VERSION = 1.9.3
BASERUBY = /usr/bin/ruby1.8
target_alias =
host_alias =
build_alias = x86_64-linux-gnu
LIBS = -lpthread -lrt -ldl -lcrypt -lm
ECHO_T =
ECHO_N = -n
ECHO_C =
DEFS =
mandir = /usr/share/man
localedir = /usr/share/locale
libdir = /usr/lib
psdir = /usr/share/doc/ruby
pdfdir = /usr/share/doc/ruby
dvidir = /usr/share/doc/ruby
htmldir = /usr/share/doc/ruby
infodir = /usr/share/info
docdir = /usr/share/doc/ruby
oldincludedir = /usr/include
includedir = /usr/include
localstatedir = /var
sharedstatedir = /usr/com
sysconfdir = /etc
datadir = /usr/share
datarootdir = /usr/share
libexecdir = /usr/lib/ruby1.9.1
sbindir = /usr/sbin
bindir = /usr/bin
program_transform_name = s&$&1.9.1&;s&^&&
exec_prefix = /usr
PACKAGE_URL =
PACKAGE_BUGREPORT =
PACKAGE_STRING =
PACKAGE_VERSION =
PACKAGE_TARNAME =
PACKAGE_NAME =
PATH_SEPARATOR = :
SHELL = /bin/bash
rubylibdir = /usr/lib/ruby/1.9.1
archdir = /usr/lib/ruby/1.9.1/x86_64-linux
sitelibdir = /usr/local/lib/site_ruby/1.9.1
sitearchdir = /usr/local/lib/site_ruby/1.9.1/x86_64-linux
vendorlibdir = /usr/lib/ruby/vendor_ruby/1.9.1
vendorarchdir = /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
topdir = /usr/lib/ruby/1.9.1/x86_64-linux
Activated Ruby gems
bundler => 1.5.2
Ruby load path ($LOAD_PATH)
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib
/usr/local/lib/site_ruby/1.9.1
/usr/local/lib/site_ruby/1.9.1/x86_64-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/vendor_ruby/1.9.1
/usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
/usr/lib/ruby/vendor_ruby
/usr/lib/ruby/1.9.1
/usr/lib/ruby/1.9.1/x86_64-linux
Ruby loaded libraries ($LOADED_FEATURES)
enumerator.so
/usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
/usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
/usr/lib/ruby/1.9.1/rubygems/defaults.rb
/usr/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
/usr/lib/ruby/1.9.1/rubygems/deprecate.rb
/usr/lib/ruby/1.9.1/rubygems/exceptions.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb
/usr/lib/ruby/1.9.1/rubygems.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger.rb
/usr/lib/ruby/1.9.1/x86_64-linux/etc.so
/usr/lib/ruby/1.9.1/fileutils.rb
/usr/lib/ruby/1.9.1/tmpdir.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils/tmpio.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/platform_info.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/platform_info/operating_system.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/platform_info/ruby.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/platform_info/binary_compatibility.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/buildout/ruby/ruby-1.9.3-x86_64-linux/passenger_native_support.so
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/native_support.rb
/usr/lib/ruby/1.9.1/x86_64-linux/socket.so
/usr/lib/ruby/1.9.1/socket.rb
/usr/lib/ruby/1.9.1/thread.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/ruby_core_enhancements.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils/tmpdir.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/preloader_shared_helpers.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/constants.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/public_api.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/debug_logging.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/loader_shared_helpers.rb
/usr/lib/ruby/1.9.1/x86_64-linux/fcntl.so
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/message_channel.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/message_client.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils/native_support_utils.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils/unseekable_socket.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/request_handler/thread_handler.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/request_handler.rb
/usr/lib/ruby/1.9.1/x86_64-linux/stringio.so
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/utils/tee_input.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/rack/thread_handler_extension.rb
/var/lib/gems/1.9.1/gems/passenger-4.0.37/lib/phusion_passenger/analytics_logger.rb
/usr/lib/ruby/1.9.1/rubygems/version.rb
/usr/lib/ruby/1.9.1/rubygems/requirement.rb
/usr/lib/ruby/1.9.1/rubygems/platform.rb
/usr/lib/ruby/1.9.1/rubygems/specification.rb
/usr/lib/ruby/1.9.1/rubygems/path_support.rb
/usr/lib/ruby/1.9.1/rubygems/dependency.rb
/usr/lib/ruby/1.9.1/x86_64-linux/pathname.so
/usr/lib/ruby/1.9.1/pathname.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/constants.rb
/usr/lib/ruby/1.9.1/rubygems/config_file.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/rubygems_integration.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/current_ruby.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/shared_helpers.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/gem_path_manipulation.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/gem_helpers.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/match_platform.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/rubygems_ext.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/version.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/settings.rb
/usr/lib/ruby/1.9.1/x86_64-linux/digest.so
/usr/lib/ruby/1.9.1/digest.rb
/usr/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so
/usr/lib/ruby/1.9.1/set.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/definition.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/dependency.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/ruby_dsl.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/dsl.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/source.rb
/usr/lib/ruby/1.9.1/uri/common.rb
/usr/lib/ruby/1.9.1/uri/generic.rb
/usr/lib/ruby/1.9.1/uri/ftp.rb
/usr/lib/ruby/1.9.1/uri/http.rb
/usr/lib/ruby/1.9.1/uri/https.rb
/usr/lib/ruby/1.9.1/uri/ldap.rb
/usr/lib/ruby/1.9.1/uri/ldaps.rb
/usr/lib/ruby/1.9.1/uri/mailto.rb
/usr/lib/ruby/1.9.1/uri.rb
/usr/lib/ruby/1.9.1/rubygems/user_interaction.rb
/usr/lib/ruby/1.9.1/rubygems/remote_fetcher.rb
/usr/lib/ruby/1.9.1/rubygems/errors.rb
/usr/lib/ruby/1.9.1/rubygems/text.rb
/usr/lib/ruby/1.9.1/rubygems/spec_fetcher.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/source/rubygems.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/source/path.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/source/git.rb
/usr/lib/ruby/1.9.1/x86_64-linux/strscan.so
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/lockfile_parser.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/lazy_specification.rb
/usr/lib/ruby/1.9.1/tsort.rb
/usr/lib/ruby/1.9.1/forwardable.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/spec_set.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/environment.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/runtime.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/index.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/remote_specification.rb
/var/lib/gems/1.9.1/gems/bundler-1.5.2/lib/bundler/endpoint_specification.rb
/usr/lib/ruby/1.9.1/erb.rb
Here is my gem file
source 'https://rubygems.org'
gem 'rails', '3.2.17'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
gem 'delayed_job_active_record'
gem 'handles_sortable_columns'
gem 'will_paginate', '~> 3.0.5'
gem 'forem', :github => "radar/forem", :branch => "rails3"
gem 'forem-bootstrap', :github => "radar/forem-bootstrap"
Your application is running as root, using system ruby, and you probably installed the gems as a different user, with a different ruby installation, i.e under rvm or rbenv.
The simplest solution would be to run bundle install as root. Good luck!

Resources