Page 5 of 5

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 12:20 am
by bugficks
just that auth null thing iirc. might check later in more detail.

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 3:14 am
by bugficks
authnull_ops is the only noteworthy change.

Code: Select all

diff -rupN linux-3.0.20-org/net/sunrpc/auth_null.c linux-3.0.20/net/sunrpc/auth_null.c
--- linux-3.0.20-org/net/sunrpc/auth_null.c	2013-04-08 06:57:31.000000000 +0200
+++ linux-3.0.20/net/sunrpc/auth_null.c	2013-11-16 15:07:38.000000000 +0100
@@ -140,3 +140,5 @@ struct rpc_cred null_cred = {
 	.cr_magic	= RPCAUTH_CRED_MAGIC,
 #endif
 };
+
+EXPORT_SYMBOL_GPL(authnull_ops);
other than that i merged FOXP and X12 kernel tree so i don't have different trees.

my X12 kernel config:
config-X12.zip

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 1:25 pm
by levi
Well this is COMPLETELY different config from what i had...
SpoilerShow

Code: Select all

.config is mine, config.12 is yours
[centos@localhost linux-3.0.20]$ diff -y --suppress-common-lines .config config.X12
# CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set              | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
# CONFIG_NETFILTER_XT_MATCH_STATE is not set                  | CONFIG_NETFILTER_XT_MATCH_STATE=m
CONFIG_NF_DEFRAG_IPV4=y                                       | CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=y                                    | CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_IP_NF_IPTABLES=y                                       | CONFIG_IP_NF_IPTABLES=m
# CONFIG_IP_NF_FILTER is not set                              | CONFIG_IP_NF_FILTER=m
# CONFIG_IP_NF_TARGET_LOG is not set                          | CONFIG_IP_NF_TARGET_REJECT=m
# CONFIG_IP_NF_TARGET_ULOG is not set                         | CONFIG_IP_NF_TARGET_LOG=m
CONFIG_NF_NAT=y                                               | CONFIG_IP_NF_TARGET_ULOG=m
                                                              > CONFIG_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=y                              | CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_CFG80211=m                                             | CONFIG_CFG80211=y
CONFIG_MSTAR_EMAC=m                                           | CONFIG_MSTAR_EMAC=y
CONFIG_USB=m                                                  | CONFIG_USB=y
CONFIG_USB_EHCI_HCD=m                                         | CONFIG_USB_EHCI_HCD=y
                                                              <
#                                                             <
# Enable Host or Gadget support to see Inventra options       <
#                                                             <
CONFIG_USB_ACM=m                                              | CONFIG_USB_ACM=y
CONFIG_USB_STORAGE=m                                          | CONFIG_USB_STORAGE=y
# CONFIG_USB_GADGET is not set                                | CONFIG_USB_GADGET=m
                                                              > # CONFIG_USB_GADGET_DEBUG_FILES is not set
                                                              > CONFIG_USB_GADGET_VBUS_DRAW=2
                                                              > CONFIG_USB_GADGET_SELECTED=y
                                                              > # CONFIG_USB_GADGET_FUSB300 is not set
                                                              > # CONFIG_USB_GADGET_R8A66597 is not set
                                                              > # CONFIG_USB_GADGET_PXA_U2O is not set
                                                              > # CONFIG_USB_GADGET_M66592 is not set
                                                              > CONFIG_USB_GADGET_DUMMY_HCD=y
                                                              > CONFIG_USB_DUMMY_HCD=m
                                                              > CONFIG_USB_GADGET_DUALSPEED=y
                                                              > # CONFIG_USB_ZERO is not set
                                                              > # CONFIG_USB_AUDIO is not set
                                                              > # CONFIG_USB_ETH is not set
                                                              > # CONFIG_USB_G_NCM is not set
                                                              > # CONFIG_USB_GADGETFS is not set
                                                              > # CONFIG_USB_FUNCTIONFS is not set
                                                              > CONFIG_USB_FILE_STORAGE=m
                                                              > # CONFIG_USB_FILE_STORAGE_TEST is not set
                                                              > # CONFIG_USB_MASS_STORAGE is not set
                                                              > # CONFIG_USB_G_SERIAL is not set
                                                              > # CONFIG_USB_MIDI_GADGET is not set
                                                              > # CONFIG_USB_G_PRINTER is not set
                                                              > # CONFIG_USB_CDC_COMPOSITE is not set
                                                              > CONFIG_USB_G_SAM_MULTI=m
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_COMMON=y
                                                              > CONFIG_SAMSUNG_BUTTOM_HALF=y
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_INFO=y
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_STORAGE_REMOVABLE=y
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_STORAGE_INTERFACE_MODIFY
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_STORAGE_MULTI_DEVICE_SUP
                                                              > CONFIG_SAMSUNG_PATCH_WITH_USB_GADGET_STORAGE_PARTITION_DEVICE
                                                              > # CONFIG_SAMSUNG_CDC_EEM_DEBUG is not set
                                                              > # CONFIG_USB_G_MULTI is not set
                                                              > # CONFIG_USB_G_HID is not set
                                                              > # CONFIG_USB_G_DBGP is not set
# CONFIG_TUN is not set                                       | CONFIG_TUN=m
CONFIG_INPUT_FF_MEMLESS=m                                     | CONFIG_INPUT_FF_MEMLESS=y
CONFIG_INPUT_MOUSEDEV=m                                       | CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_JOYDEV=m                                         | CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=m                                          | CONFIG_INPUT_EVDEV=y
CONFIG_JOYSTICK_XPAD=m                                        | CONFIG_JOYSTICK_XPAD=y
CONFIG_SOUND=m                                                | CONFIG_SOUND=y
CONFIG_SND=m                                                  | CONFIG_SND=y
CONFIG_SND_TIMER=m                                            | # CONFIG_SND_SEQUENCER is not set
CONFIG_SND_PCM=m                                              <
CONFIG_SND_HWDEP=m                                            <
CONFIG_SND_RAWMIDI=m                                          <
CONFIG_SND_SEQUENCER=m                                        <
# CONFIG_SND_SEQ_DUMMY is not set                             <
# CONFIG_SND_SEQUENCER_OSS is not set                         <
CONFIG_SND_RAWMIDI_SEQ=m                                      | # CONFIG_SND_RAWMIDI_SEQ is not set
CONFIG_SND_USB_AUDIO=m                                        | # CONFIG_SND_USB_AUDIO is not set
CONFIG_HID=m                                                  | # CONFIG_HID is not set
# CONFIG_HIDRAW is not set                                    <
CONFIG_USB_HID=m                                              | # CONFIG_USB_HID is not set
# CONFIG_USB_HIDDEV is not set                                <
                                                              <
#                                                             <
# Special HID drivers                                         <
#                                                             <
# CONFIG_HID_A4TECH is not set                                <
# CONFIG_HID_ACRUX is not set                                 <
CONFIG_HID_APPLE=m                                            <
# CONFIG_HID_BELKIN is not set                                <
# CONFIG_HID_CHERRY is not set                                <
CONFIG_HID_CHICONY=m                                          <
# CONFIG_HID_PRODIKEYS is not set                             <
# CONFIG_HID_CYPRESS is not set                               <
# CONFIG_HID_DRAGONRISE is not set                            <
# CONFIG_HID_EMS_FF is not set                                <
# CONFIG_HID_EZKEY is not set                                 <
# CONFIG_HID_KEYTOUCH is not set                              <
# CONFIG_HID_KYE is not set                                   <
# CONFIG_HID_UCLOGIC is not set                               <
# CONFIG_HID_WALTOP is not set                                <
# CONFIG_HID_GYRATION is not set                              <
# CONFIG_HID_TWINHAN is not set                               <
# CONFIG_HID_KENSINGTON is not set                            <
# CONFIG_HID_LCPOWER is not set                               <
CONFIG_HID_LOGITECH=m                                         <
CONFIG_LOGITECH_FF=y                                          <
CONFIG_LOGIRUMBLEPAD2_FF=y                                    <
# CONFIG_LOGIG940_FF is not set                               <
# CONFIG_LOGIWII_FF is not set                                <
CONFIG_HID_MICROSOFT=m                                        <
# CONFIG_HID_MONTEREY is not set                              <
# CONFIG_HID_MULTITOUCH is not set                            <
# CONFIG_HID_NTRIG is not set                                 <
# CONFIG_HID_ORTEK is not set                                 <
# CONFIG_HID_PANTHERLORD is not set                           <
# CONFIG_HID_PETALYNX is not set                              <
# CONFIG_HID_PICOLCD is not set                               <
# CONFIG_HID_QUANTA is not set                                <
# CONFIG_HID_ROCCAT is not set                                <
# CONFIG_HID_ROCCAT_ARVO is not set                           <
# CONFIG_HID_ROCCAT_KONE is not set                           <
# CONFIG_HID_ROCCAT_KONEPLUS is not set                       <
# CONFIG_HID_ROCCAT_KOVAPLUS is not set                       <
# CONFIG_HID_ROCCAT_PYRA is not set                           <
# CONFIG_HID_SAMSUNG is not set                               <
# CONFIG_HID_SONY is not set                                  <
# CONFIG_HID_SUNPLUS is not set                               <
# CONFIG_HID_GREENASIA is not set                             <
# CONFIG_HID_SMARTJOYPLUS is not set                          <
# CONFIG_HID_TOPSEED is not set                               <
# CONFIG_HID_THRUSTMASTER is not set                          <
# CONFIG_HID_ZEROPLUS is not set                              <
# CONFIG_HID_ZYDACRON is not set                              <
CONFIG_FAT_FS=y                                               | # CONFIG_MSDOS_FS is not set
CONFIG_MSDOS_FS=y                                             | # CONFIG_VFAT_FS is not set
CONFIG_VFAT_FS=y                                              <
CONFIG_FAT_DEFAULT_CODEPAGE=437                               <
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"                      <
CONFIG_TNTFS_FS=m                                             | CONFIG_TNTFS_FS=y
CONFIG_EXFAT_FS=m                                             | CONFIG_EXFAT_FS=y
CONFIG_EXFAT_DEFAULT_CODEPAGE=437                             <
# CONFIG_VFAT_FS_DUALNAMES is not set                         | CONFIG_NETWORK_FILESYSTEMS=y
# CONFIG_NETWORK_FILESYSTEMS is not set                       | CONFIG_NFS_FS=m
                                                              > CONFIG_NFS_V3=y
                                                              > # CONFIG_NFS_V3_ACL is not set
                                                              > CONFIG_NFS_V4=y
                                                              > # CONFIG_NFS_V4_1 is not set
                                                              > CONFIG_NFS_USE_LEGACY_DNS=y
                                                              > # CONFIG_NFSD is not set
                                                              > CONFIG_LOCKD=m
                                                              > CONFIG_LOCKD_V4=y
                                                              > CONFIG_NFS_COMMON=y
                                                              > CONFIG_SUNRPC=m
                                                              > CONFIG_SUNRPC_GSS=m
                                                              > # CONFIG_CEPH_FS is not set
                                                              > CONFIG_CIFS=m
                                                              > # CONFIG_CIFS_STATS is not set
                                                              > # CONFIG_CIFS_WEAK_PW_HASH is not set
                                                              > CONFIG_CIFS_XATTR=y
                                                              > CONFIG_CIFS_POSIX=y
                                                              > # CONFIG_CIFS_DEBUG2 is not set
                                                              > # CONFIG_NCP_FS is not set
                                                              > # CONFIG_CODA_FS is not set
                                                              > # CONFIG_AFS_FS is not set
# CONFIG_CRYPTO is not set                                    | CONFIG_CRYPTO=m
                                                              >
                                                              > #
                                                              > # Crypto core or helper
                                                              > #
                                                              > CONFIG_CRYPTO_ALGAPI=m
                                                              > CONFIG_CRYPTO_ALGAPI2=m
                                                              > CONFIG_CRYPTO_AEAD2=m
                                                              > CONFIG_CRYPTO_BLKCIPHER=m
                                                              > CONFIG_CRYPTO_BLKCIPHER2=m
                                                              > CONFIG_CRYPTO_HASH=m
                                                              > CONFIG_CRYPTO_HASH2=m
                                                              > CONFIG_CRYPTO_RNG=m
                                                              > CONFIG_CRYPTO_RNG2=m
                                                              > CONFIG_CRYPTO_PCOMP2=m
                                                              > CONFIG_CRYPTO_MANAGER=m
                                                              > CONFIG_CRYPTO_MANAGER2=m
                                                              > CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
                                                              > # CONFIG_CRYPTO_GF128MUL is not set
                                                              > # CONFIG_CRYPTO_NULL is not set
                                                              > # CONFIG_CRYPTO_PCRYPT is not set
                                                              > CONFIG_CRYPTO_WORKQUEUE=m
                                                              > # CONFIG_CRYPTO_CRYPTD is not set
                                                              > # CONFIG_CRYPTO_AUTHENC is not set
                                                              > # CONFIG_CRYPTO_TEST is not set
                                                              >
                                                              > #
                                                              > # Authenticated Encryption with Associated Data
                                                              > #
                                                              > # CONFIG_CRYPTO_CCM is not set
                                                              > # CONFIG_CRYPTO_GCM is not set
                                                              > # CONFIG_CRYPTO_SEQIV is not set
                                                              >
                                                              > #
                                                              > # Block modes
                                                              > #
                                                              > # CONFIG_CRYPTO_CBC is not set
                                                              > # CONFIG_CRYPTO_CTR is not set
                                                              > # CONFIG_CRYPTO_CTS is not set
                                                              > CONFIG_CRYPTO_ECB=m
                                                              > # CONFIG_CRYPTO_LRW is not set
                                                              > # CONFIG_CRYPTO_PCBC is not set
                                                              > # CONFIG_CRYPTO_XTS is not set
                                                              >
                                                              > #
                                                              > # Hash modes
                                                              > #
                                                              > CONFIG_CRYPTO_HMAC=m
                                                              > # CONFIG_CRYPTO_XCBC is not set
                                                              > # CONFIG_CRYPTO_VMAC is not set
                                                              >
                                                              > #
                                                              > # Digest
                                                              > #
                                                              > # CONFIG_CRYPTO_CRC32C is not set
                                                              > # CONFIG_CRYPTO_GHASH is not set
                                                              > CONFIG_CRYPTO_MD4=m
                                                              > CONFIG_CRYPTO_MD5=m
                                                              > # CONFIG_CRYPTO_MICHAEL_MIC is not set
                                                              > # CONFIG_CRYPTO_RMD128 is not set
                                                              > # CONFIG_CRYPTO_RMD160 is not set
                                                              > # CONFIG_CRYPTO_RMD256 is not set
                                                              > # CONFIG_CRYPTO_RMD320 is not set
                                                              > # CONFIG_CRYPTO_SHA1 is not set
                                                              > # CONFIG_CRYPTO_SHA256 is not set
                                                              > # CONFIG_CRYPTO_SHA512 is not set
                                                              > # CONFIG_CRYPTO_TGR192 is not set
                                                              > # CONFIG_CRYPTO_WP512 is not set
                                                              >
                                                              > #
                                                              > # Ciphers
                                                              > #
                                                              > CONFIG_CRYPTO_AES=m
                                                              > # CONFIG_CRYPTO_ANUBIS is not set
                                                              > CONFIG_CRYPTO_ARC4=m
                                                              > # CONFIG_CRYPTO_BLOWFISH is not set
                                                              > # CONFIG_CRYPTO_CAMELLIA is not set
                                                              > # CONFIG_CRYPTO_CAST5 is not set
                                                              > # CONFIG_CRYPTO_CAST6 is not set
                                                              > CONFIG_CRYPTO_DES=m
                                                              > # CONFIG_CRYPTO_FCRYPT is not set
                                                              > # CONFIG_CRYPTO_KHAZAD is not set
                                                              > # CONFIG_CRYPTO_SALSA20 is not set
                                                              > # CONFIG_CRYPTO_SEED is not set
                                                              > # CONFIG_CRYPTO_SERPENT is not set
                                                              > # CONFIG_CRYPTO_TEA is not set
                                                              > # CONFIG_CRYPTO_TWOFISH is not set
                                                              >
                                                              > #
                                                              > # Compression
                                                              > #
                                                              > # CONFIG_CRYPTO_DEFLATE is not set
                                                              > # CONFIG_CRYPTO_ZLIB is not set
                                                              > # CONFIG_CRYPTO_LZO is not set
                                                              >
                                                              > #
                                                              > # Random Number Generation
                                                              > #
                                                              > CONFIG_CRYPTO_ANSI_CPRNG=m
                                                              > # CONFIG_CRYPTO_USER_API_HASH is not set
                                                              > # CONFIG_CRYPTO_USER_API_SKCIPHER is not set
                                                              > CONFIG_CRYPTO_HW=y

I've got my config following samsung's recommendations. I did following:
Downloaded 13_UExxF68xx.zip from opensource.samsung.com site (it was recommended for my TV version UA**F64** in the table), extracted it, VDLinux_3.0.20.tgz and readme_X12.zip to appropriate folders.
According to readme_X12.txt I should do following:
1. Linux Kernel ( VDLinux_3.0.20.tgz )

* Unpack the kernel tarball and cd into it.
* Run "cd VDLinux_3.0.20/linux-3.0.20/"
* Run "cp -ar arch/arm/configs/X12_defconfig_release .config"
* Run "make oldconfig"
I've exported toolchain path with: "export PATH=$PATH:/opt/arm-v7a15v3r1-20121018/bin/", copied sample "X12_defconfig_release" file and executed:
"make ARCH=arm CROSS_COMPILE=arm-v7a15v3r1-linux-gnueabi- oldconfig"
At this point i have differences above.
Can You please clarify your steps?

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 2:23 pm
by bugficks
i guess your problem is wrong toolchain, you need a8-lite or something.
sure my config is different since i ve changed it to build nfs,cifs,tun + other stuff :)
i started w/ the default X12 like you and then applied my changes so everything i needed/wanted builds fine

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 2:43 pm
by levi
Can You please point exact toolchain You used? maybe this one VDLinux-armv7a8-toolchain-lite_20100630.tgz?
It will be much easier to stick with exact version which works than try to find the one.
I need to know working version because i am willing to build busybox with ash, i am going crazy without command history.

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 2:54 pm
by bugficks
thats the same one im using. a15 toolchain generates code that produces illegal instruction exception on non FOXP. hence im using a8 toolchain for all my multiple-target stuff :)

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 3:01 pm
by levi
Great! Thank You very much!

Re: Compiling kernel modules for F series

Posted: Sun Nov 17, 2013 3:09 pm
by bugficks
np
for some default cflags check 13_UExxF68xx.zip->glibc_X12.tar.gz:glibc/glibc_src_vdprint_getenv_getaddrinfo_dns_dlsym_20130227/scripts/toolchain.cfg/
for building tools you might want to check http://buildroot.net/. simplifies getting/building dependecies etc quite a lot
anyways, be careful what you do or you might end up having a brick :)

Re: Compiling kernel modules for F series

Posted: Mon Jul 14, 2014 6:21 am
by BorisAU
hello
Who has a set of applications for ARM Compilation, please compile transmission with which readdir.
https://github.com/wereHamster/transmis ... on/watch.c

desirable versions 1.93 and 2.82

the bottom line is that the F8000 is not working INOTIFY, apparently because custom kernel.

The situation is such https://forum.transmissionbt.com/viewto ... f=2&t=9255


not work without this option watch-dir
fires

Code: Select all

    if (i < 0)
    {
        tr_logAddError ("Unable to watch \"%s\": %s", w->dir, tr_strerror (errno));
    }
section of **** INOTIFY IMPLEMENTATION and it is

necessary to s **** READDIR IMPLEMENTATION

or should like to include support in the kernel INOTIFY ...

Re: Compiling kernel modules for F series

Posted: Fri Apr 19, 2019 8:06 am
by arkoPL
Hello,
where can I find sources for the kernel 3.0.33?